/* ===================================
    IP communications Ltd - Custom CSS
   ================================== */

/* Bengali Font Configuration */
* {
    font-family: 'Hind Siliguri', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2f4b9d, #25a7c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Card Styles */
.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* FAQ Accordion Styles */
.faq-item .faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Pulse Animation for Floating Buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background: #2f4b9d;
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Package Card Highlighting */
.package-featured {
    border: 3px solid #8b5cf6;
    transform: scale(1.05);
    z-index: 10;
}

/* Image Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message-success {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #10b981;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #ef4444;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

p {
    line-height: 1.7;
}

/* Link Styles */
a {
    transition: color 0.2s ease;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Table Responsive */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can add dark mode styles here if needed */
}

/* Utility Classes */
.overflow-wrap {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Gradient Backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Hero Section Custom Styles */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

@keyframes watermark-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -7px, 0);
    }
}

.hero-watermark-layer {
    z-index: 1;
}

.hero-watermark {
    position: absolute;
    color: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    text-transform: lowercase;
    user-select: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.16s ease-out;
    animation: watermark-float 6s ease-in-out infinite;
    text-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.hero-watermark:nth-child(2) {
    animation-delay: 0.8s;
}

.hero-watermark:nth-child(3) {
    animation-delay: 1.2s;
}

.hero-watermark:nth-child(4) {
    animation-delay: 1.7s;
}

.hero-watermark:nth-child(5) {
    animation-delay: 2.1s;
}


/* Skeleton Loading (for future use) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Font Sizes */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

/* Custom Container Max Width */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Image Hover Zoom Effect */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================
   Final UI Polish
   ================================== */

::selection {
    background: rgba(37, 167, 199, 0.22);
    color: #111827;
}

body {
    color: #111827;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassy sticky navbar look */
nav.sticky {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Consistent card polish */
.rounded-2xl.shadow-lg,
.rounded-2xl.shadow-xl,
.rounded-xl.shadow-lg {
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.rounded-2xl.shadow-lg:hover,
.rounded-2xl.shadow-xl:hover,
.rounded-xl.shadow-lg:hover {
    border-color: rgba(191, 219, 254, 1);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.12);
}

/* Better CTA/button interactions */
a[class*="rounded-full"],
a[class*="rounded-lg"],
button[class*="rounded-lg"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

a[class*="rounded-full"]:hover,
a[class*="rounded-lg"]:hover,
button[class*="rounded-lg"]:hover {
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

a[class*="rounded-full"]:active,
a[class*="rounded-lg"]:active,
button[class*="rounded-lg"]:active {
    transform: translateY(1px);
}

/* Form input polish */
input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-watermark {
        animation: none !important;
        transition: none !important;
    }

}

/* ===================================
   Brand Color System Cleanup
   ================================== */

:root {
    --brand-primary: #2f4b9d;
    --brand-primary-dark: #243d86;
    --brand-primary-soft: #25a7c7;
    --brand-primary-deep: #1c2f67;
    --brand-surface: #eef8fb;
    --brand-surface-strong: #d7f0f6;
}

/* Normalize non-brand gradients to brand blue */
section[class*="from-orange-"][class*="to-red-"],
section[class*="from-purple-"][class*="to-indigo-"],
section[class*="from-indigo-"][class*="to-purple-"] {
    background-image: linear-gradient(120deg, var(--brand-primary) 0%, #4c73ad 52%, #78c7ce 100%) !important;
}

/* Keep light text on brand gradients consistent */
.text-orange-100,
.text-purple-100 {
    color: #dbeafe !important;
}

/* Unify purple/orange accents into one blue system */
.text-purple-600,
.text-orange-600 {
    color: var(--brand-primary) !important;
}

.text-blue-600,
.text-blue-700 {
    color: var(--brand-primary) !important;
}

.bg-purple-600,
.bg-orange-600 {
    background-image: linear-gradient(120deg, var(--brand-primary-soft), var(--brand-primary)) !important;
    background-color: var(--brand-primary) !important;
}

.bg-blue-600 {
    background-image: linear-gradient(120deg, #1f8fbe, #2f4b9d) !important;
    background-color: #2f4b9d !important;
}

.hover\:bg-purple-700:hover,
.hover\:bg-orange-700:hover {
    background-image: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark)) !important;
    background-color: var(--brand-primary-dark) !important;
}

.hover\:bg-blue-700:hover {
    background-image: linear-gradient(120deg, #1a7fa7, #243d86) !important;
    background-color: #243d86 !important;
}

.from-purple-50.to-purple-100,
.from-orange-50.to-orange-100 {
    background-image: linear-gradient(135deg, #eef8fb, #d7f0f6) !important;
}

.bg-purple-50,
.bg-orange-50,
.bg-purple-100,
.bg-orange-100 {
    background-color: var(--brand-surface) !important;
}

.border-purple-400,
.border-purple-100,
.border-orange-100 {
    border-color: #bfdbfe !important;
}

/* Standardize white CTA text color over accent buttons */
.bg-purple-600,
.bg-orange-600,
.bg-purple-700,
.bg-orange-700 {
    color: #ffffff !important;
}

/* End of Custom CSS */
