/* Custom Styles for TATA Play DTH Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile-specific typography */
    h1 {
        font-size: 2rem !important;
        line-height: 2.5rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 2.25rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    /* Mobile grid adjustments */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile spacing */
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Mobile button sizing */
    .px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Mobile hero adjustments */
    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 3rem !important;
    }
    
    /* Mobile form improvements */
    .form-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Mobile navigation improvements */
    #mobile-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Mobile card improvements */
    .pricing-card, .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile FAQ improvements */
    .faq-toggle {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .faq-content {
        padding: 0 1rem 1rem 1rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
        line-height: 2.25rem !important;
    }
    
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

.animate-slideInRight {
    animation: slideInFromRight 0.6s ease-out forwards;
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.2);
}

/* CTA Button animations */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom card hover effects */
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
}

/* Sticky header effect */
.header-scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.show {
    max-height: 500px;
}

/* Enhanced mobile menu */
@media (max-width: 768px) {
    #mobile-menu {
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    #mobile-menu nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
        transition: background-color 0.2s ease;
    }
    
    #mobile-menu nav a:hover {
        background-color: #f9fafb;
    }
    
    #mobile-menu nav a:last-child {
        border-bottom: none;
        margin-top: 1rem;
        padding: 1rem;
        text-align: center;
        background-color: #e91e63;
        color: white;
        border-radius: 9999px;
    }
}

/* Form input focus effects */
.form-input:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

/* Enhanced form styling for mobile */
@media (max-width: 768px) {
    form {
        padding: 1.5rem !important;
    }
    
    .form-input, input, textarea, select {
        font-size: 16px !important;
        padding: 0.875rem !important;
    }
    
    .form-input:focus, input:focus, textarea:focus, select:focus {
        transform: none !important;
    }
}

/* Fix select dropdown text visibility */
select {
    color: #374151 !important;
    background-color: #ffffff !important;
}

select option {
    color: #374151 !important;
    background-color: #ffffff !important;
}

/* Ensure select text is visible on all devices */
select:focus {
    color: #374151 !important;
    background-color: #ffffff !important;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
    border-top: 3px solid #e91e63;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success and error messages */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideInFromTop 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials and reviews styling */
.testimonial-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left: 4px solid #e91e63;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.15);
}

/* Icon animations */
.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Progress bars for loading */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #9c27b0);
    border-radius: 2px;
    animation: progressMove 1.5s ease-in-out infinite;
}

@keyframes progressMove {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive image handling */
.responsive-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c2185b, #8e24aa);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-primary-pink {
        background-color: #d81b60 !important;
    }
    
    .text-primary-pink {
        color: #d81b60 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1a1a1a;
        color: #ffffff;
    }
}

/* Focus indicators for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #e91e63;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-touch-target {
        padding: 0.75rem 1rem;
        min-height: 48px;
    }
    
    /* Mobile navigation improvements */
    #mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile form improvements */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    /* Mobile button improvements */
    .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* Mobile card improvements */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
        overflow: hidden;
    }
    
    /* Mobile spacing utilities */
    .mobile-p-4 {
        padding: 1rem !important;
    }
    
    .mobile-p-6 {
        padding: 1.5rem !important;
    }
    
    .mobile-p-8 {
        padding: 2rem !important;
    }
    
    .mobile-mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mobile-mb-6 {
        margin-bottom: 1.5rem !important;
    }
    
    .mobile-mb-8 {
        margin-bottom: 2rem !important;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .py-16, .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 2.5rem !important;
    }
}

/* Large mobile devices */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: no-preference) {
    .smooth-transition {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Mobile-first responsive utilities */
.mobile-first {
    display: block;
}

@media (min-width: 768px) {
    .mobile-first {
        display: none;
    }
}

.desktop-first {
    display: none;
}

@media (min-width: 768px) {
    .desktop-first {
        display: block;
    }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    #mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 50;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    #mobile-menu.show {
        right: 0;
    }
}

/* ===== Floating WhatsApp & Call Button Group ===== */
.float-btn-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  z-index: 1001;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.35rem;
  box-shadow: 1px 1px 6px #3332;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  outline: none;
}
.float-btn:active {
  transform: scale(0.97);
}
.whatsapp-btn {
  background: #25D366;
}
.whatsapp-btn:hover {
  background: #128C7E;
  box-shadow: 0 4px 18px #25D36644;
}
.call-btn {
  background: #e91e63;
}
.call-btn:hover {
  background: #ad1457;
  box-shadow: 0 4px 18px #ad145744;
}
@media (max-width: 768px) {
  .float-btn-group {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }
  .float-btn {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
}

/* ===== Redesigned Large Left-Right Floating Buttons ===== */
.whatsapp-float-right,
.call-float-left {
  position: fixed;
  bottom: 32px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 2.7rem;
  box-shadow: 2px 2px 16px #3334;
  z-index: 1002;
  text-decoration: none;
  transition: transform 0.17s, box-shadow 0.2s;
}
.whatsapp-float-right {
  right: 30px;
  background: #25D366;
}
.whatsapp-float-right:hover {
  background: #128C7E;
  box-shadow: 0 6px 24px #25D36677;
}
.call-float-left {
  left: 30px;
  background: #e91e63;
}
.call-float-left:hover {
  background: #ad1457;
  box-shadow: 0 6px 24px #ad145777;
}
@media (max-width: 768px) {
  .whatsapp-float-right,
  .call-float-left {
    width: 54px;
    height: 54px;
    font-size: 1.85rem;
    bottom: 16px;
  }
  .whatsapp-float-right { right: 12px; }
  .call-float-left { left: 12px; }
}
