/* Global Styles */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #FFD700;
    --accent-color: #F4A261;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --bg-light: #FFF8F0;
    --bg-dark: #1A1A1A;
    --gradient-primary: linear-gradient(135deg, #FF6B35, #FFD700);
    --gradient-secondary: linear-gradient(135deg, #F4A261, #E76F51);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
.sanskrit-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 500;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-radius: 5px;
        margin: 0.2rem 0;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--gradient-primary);
        color: white !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler:hover {
        background: var(--gradient-primary);
        color: white;
    }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('back.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Account for fixed navbar */
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* Better performance on mobile */
        padding-top: 70px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: white;
}

.service-card {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    line-height: 1.6;
}

.testimonial-author h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item h6 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 8rem;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h6 {
    margin: 0;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
}

.message.received {
    background: #f0f0f0;
    margin-right: auto;
}

.message.sent {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
}

.chat-input button {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* Responsive Design */

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand i {
        font-size: 1.8rem;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .chat-widget {
        width: 280px;
        height: 350px;
        right: 1rem;
        bottom: 5rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .title-underline {
        width: 60px;
        margin-bottom: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.6rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .about-section,
    .services-section,
    .gallery-section,
    .testimonials-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .feature-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.3rem;
    }
    
    .service-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    
    .gallery-overlay h5 {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
    
    .testimonial-author h5 {
        font-size: 1rem;
    }
    
    .testimonial-author span {
        font-size: 0.8rem;
    }
    
    .contact-info h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .contact-item h6 {
        font-size: 0.9rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .contact-form .form-control {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links li {
        margin-bottom: 0.3rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .chat-widget {
        width: 100%;
        height: 100vh;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    
    .chat-header {
        padding: 0.8rem;
    }
    
    .chat-header h6 {
        font-size: 0.9rem;
    }
    
    .chat-messages {
        padding: 0.8rem;
    }
    
    .message {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .chat-input {
        padding: 0.8rem;
    }
    
    .chat-input input {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        font-size: 1.5rem;
        bottom: 1rem;
    }
}

/* Extra Small Mobile Phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-content p {
        font-size: 0.85rem;
    }
    
    .contact-info h4 {
        font-size: 1.2rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-item h6 {
        font-size: 0.85rem;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .footer-brand {
        font-size: 1.2rem;
    }
    
    .footer h5 {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .whatsapp-float a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile Phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        width: auto;
    }
    
    .about-section,
    .services-section,
    .gallery-section,
    .testimonials-section,
    .contact-section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('back.jpg');
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .chat-widget,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: none !important;
        color: black !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .service-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
} 