/* QSDTI Custom Styles */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937; /* text-gray-800 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Readability helpers */
main p {
    line-height: 1.75;
}

.copy-max {
    max-width: 72ch;
}

h1, h2, h3 {
    text-wrap: balance;
}

/* Simple scroll animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mini Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply animations */
.group:hover .group-hover\:animate-float,
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

.shimmer-animation {
    animation: shimmer 3s linear infinite;
}

/* Group icon hover animations */
.group:hover .group-hover\/icon\:scale-110 {
    animation: float 2s ease-in-out infinite;
}

.bg-pattern {
    background-color: #f0f8ff; /* Light blue background */
    background-image:  
        linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2328a745' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Custom Colors based on logo */
.text-qsdti-blue { color: #28548a; }
.bg-qsdti-blue { background-color: #28548a; }
.hover-text-qsdti-green:hover { color: #5cb85c; }
.text-qsdti-green { color: #5cb85c; }
.bg-qsdti-green-light { background-color: #e6f7e6; }
.text-qsdti-gold { color: #ffbf00; }
.bg-qsdti-gold { background-color: #ffbf00; }
.hover-bg-qsdti-gold-dark:hover { background-color: #e0a800; }
.border-qsdti-blue { border-color: #28548a; }

/* Hero Section Styles */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.65));
}

.hero-content-panel {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 1.75rem;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 20px 60px -10px rgba(0, 0, 0, 0.4),
        0 10px 30px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
    max-width: 95%;
}

@media (min-width: 768px) {
    .hero-content-panel {
        padding: 3rem 4rem;
        max-width: 90%;
    }
}

@media (min-width: 1024px) {
    .hero-content-panel {
        padding: 3.5rem 5rem;
        max-width: 85%;
    }
}

.hero-title {
    color: #ffffff;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.95),
        0 2px 8px rgba(0, 0, 0, 0.85),
        0 1px 4px rgba(0, 0, 0, 0.75),
        0 0 30px rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 3.25rem;
        letter-spacing: 0.14em;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.05;
        margin-bottom: 1.75rem;
        letter-spacing: 0.15em;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
        letter-spacing: 0.16em;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

.hero-subtitle {
    color: #f0f9ff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    letter-spacing: 0.035em;
    text-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.92),
        0 2px 6px rgba(0, 0, 0, 0.80),
        0 1px 3px rgba(0, 0, 0, 0.70);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 480px) {
    .hero-subtitle {
        font-size: 1.375rem;
        letter-spacing: 0.04em;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.75rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        letter-spacing: 0.045em;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1280px) {
    .hero-subtitle {
        font-size: 2.25rem;
    }
}

.hero-tagline {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    margin-top: 1.25rem;
    letter-spacing: 0.04em;
    opacity: 0.95;
    text-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.92),
        0 2px 6px rgba(0, 0, 0, 0.80),
        0 1px 3px rgba(0, 0, 0, 0.70);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 480px) {
    .hero-tagline {
        font-size: 1.0625rem;
        letter-spacing: 0.045em;
    }
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.25rem;
        line-height: 1.7;
        margin-top: 1.5rem;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1024px) {
    .hero-tagline {
        font-size: 1.375rem;
        letter-spacing: 0.055em;
    }
}

@media (min-width: 1280px) {
    .hero-tagline {
        font-size: 1.5rem;
    }
}

.hero-cta-panel {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Carousel Styles */
.carousel-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1000ms;
    opacity: 0;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 300ms;
    cursor: pointer;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background-color: rgba(255, 255, 255, 0.8);
    width: 2rem;
}.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Fade-in animation delays */
.hero-cta-delay {
    transition-delay: 320ms;
}

.fade-in-up[style*="transition-delay: 120ms"],
.fade-in-delay-120 {
    transition-delay: 120ms;
}

.fade-in-up[style*="transition-delay: 160ms"],
.fade-in-delay-160 {
    transition-delay: 160ms;
}

.fade-in-up[style*="transition-delay: 240ms"],
.fade-in-delay-240 {
    transition-delay: 240ms;
}

.fade-in-up[style*="transition-delay: 360ms"],
.fade-in-delay-360 {
    transition-delay: 360ms;
}

/* Modern UI helpers */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 9999px;
    font-weight: 700;
    background: linear-gradient(90deg, #28548a, #2f9e71);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(40, 84, 138, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 36px rgba(40, 84, 138, 0.45);
    opacity: 0.96;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.3rem;
    border-radius: 9999px;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    background: rgba(255,255,255,0.18);
}

.glass-panel {
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    text-align: left;
}
.glass-panel h3 { margin: 0; }
.glass-panel p { margin: 0; }

.icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    font-size: 1rem;
}

.card-modern {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}
.card-copy {
    color: #475569;
    line-height: 1.55;
    font-size: 0.98rem;
}

/* Section framing */
.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-heading h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
}
.section-heading p {
    color: #475569;
    margin-top: 0.35rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #e0f2fe;
    color: #0f172a;
}
.badge-soft {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #0f172a;
}
.badge-emerald { background:#ecfdf3; color:#047857; }
.badge-sky { background:#e0f2fe; color:#0369a1; }
.badge-amber { background:#fef3c7; color:#92400e; }

.muted {
    color: #64748b;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #28548a;
}
.card-link i { font-size: 0.9rem; }

.shadow-soft {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Gradients for Hero and other sections */
.bg-hero-gradient {
    background: linear-gradient(to right, #28548a, #5cb85c);
}

.bg-hero-gradient-text {
    background: -webkit-linear-gradient(left, #e0f2f7, #a7d9d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Popup Styles */
dialog#myPhotoPopup {
    border: none;
    border-radius: 8px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

dialog#myPhotoPopup::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.popup-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    text-align: center;
}

.popup-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.action-btn {
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.action-btn:hover {
    background-color: rgb(7, 94, 88);
}

/* Maintenance popup */
.popup-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #374151;
}
