/* Custom CSS for animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
@keyframes pulseSlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-fade-in-up {
    animation: fadeIn 1s ease-out forwards;
}
.animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}
.animate-bounce-in {
    animation: bounceIn 1.5s infinite;
}
.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}
.animate-pulse-slow {
    animation: pulseSlow 2s infinite ease-in-out;
}
.animate-scale-in {
    animation: scaleIn 1s ease-out forwards;
}
.animate-slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}
.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Background pattern */
.bg-pattern {
    background-image: 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="%23FF5733" fill-opacity="0.2"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 14v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 14v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 14v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 2v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zM17 2v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zM32 2v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zM47 2v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zM59 2v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2zm0 14v-2h-2v2h2z"%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    background-size: 60px 60px;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a202c; /* Dark background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none; /* Disable interaction during fade out */
}
.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #ef4444; /* Red-500 */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}
.loading-text {
    color: #f3f4f6; /* Light grey */
    font-size: 1.25rem;
    font-weight: 600;
}

/* General Card Styles (updated colors) */
.general-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid;
}
.general-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.general-card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
    background-color: #ef4444; /* Red background */
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}
.general-card:hover .general-card-icon-wrapper {
    transform: scale(1.1);
    background-color: #dc2626; /* Darker red on hover */
}
.general-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.general-card p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}
.general-card a.button-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border: 2px solid;
    margin-top: 1.5rem;
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}
.general-card a.button-link:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Product Card Specific Styles */
.product-card {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.product-card img {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
.product-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}
.product-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.product-card a.product-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border: 2px solid;
}
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
    border-radius: inherit;
}
.product-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.product-card:hover::before {
    opacity: 1;
}

/* Themes for each product */
.pos-ndx { border-bottom: 4px solid #3b82f6; }
.pos-ndx a.product-button { background-color: #3b82f6; color: white; border-color: #3b82f6; }
.pos-ndx a.product-button:hover { background-color: #2563eb; border-color: #2563eb; }
.pos-ndx::before { background: linear-gradient(45deg, #60a5fa, #3b82f6); }
.pos-ndx:hover { box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3); }

.antrian-ndx { border-bottom: 4px solid #e11d48; }
.antrian-ndx a.product-button { background-color: #e11d48; color: white; border-color: #e11d48; }
.antrian-ndx a.product-button:hover { background-color: #c21e3d; border-color: #c21e3d; }
.antrian-ndx::before { background: linear-gradient(45deg, #f43f5e, #e11d48); }
.antrian-ndx:hover { box-shadow: 0 10px 15px rgba(225, 29, 72, 0.3); }

.page-digital { border-bottom: 4px solid #10b981; }
.page-digital a.product-button { background-color: #10b981; color: white; border-color: #10b981; }
.page-digital a.product-button:hover { background-color: #059669; border-color: #059669; }
.page-digital::before { background: linear-gradient(45deg, #34d399, #10b981); }
.page-digital:hover { box-shadow: 0 10px 15px rgba(16, 185, 129, 0.3); }

.gopix-id { border-bottom: 4px solid #8b5cf6; }
.gopix-id a.product-button { background-color: #8b5cf6; color: white; border-color: #8b5cf6; }
.gopix-id a.product-button:hover { background-color: #7c3aed; border-color: #7c3aed; }
.gopix-id::before { background: linear-gradient(45deg, #a78bfa, #8b5cf6); }
.gopix-id:hover { box-shadow: 0 10px 15px rgba(139, 92, 246, 0.3); }

.idevice-indonesia { border-bottom: 4px solid #f59e0b; }
.idevice-indonesia a.product-button { background-color: #f59e0b; color: white; border-color: #f59e0b; }
.idevice-indonesia a.product-button:hover { background-color: #d97706; border-color: #d97706; }
.idevice-indonesia::before { background: linear-gradient(45deg, #fcd34d, #f59e0b); }
.idevice-indonesia:hover { box-shadow: 0 10px 15px rgba(245, 158, 11, 0.3); }

.tasik-tv { border-bottom: 4px solid #6d28d9; }
.tasik-tv a.product-button { background-color: #6d28d9; color: white; border-color: #6d28d9; }
.tasik-tv a.product-button:hover { background-color: #5b21b6; border-color: #5b21b6; }
.tasik-tv::before { background: linear-gradient(45deg, #8b5cf6, #6d28d9); }
.tasik-tv:hover { box-shadow: 0 10px 15px rgba(109, 40, 217, 0.3); }

/* Team Member Card Styles */
.team-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: center;
    border-bottom: 4px solid #f87171;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 4px solid #f87171;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.team-card p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1rem;
}
.team-social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.team-social-links a {
    color: #4b5563;
    font-size: 1.5rem;
    transition: color 0.2s ease-in-out;
}
.team-social-links a:hover {
    color: #ef4444;
}
.team-social-links .fa-twitter:hover { color: #000000; }
.team-social-links .fa-instagram:hover { color: #E4405F; }
.team-social-links .fa-linkedin-in:hover { color: #0A66C2; }

.team-experience-list {
    text-align: left;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1rem;
    list-style: disc;
    padding-left: 1.5rem;
}
.team-experience-list li {
    margin-bottom: 0.25rem;
}

/* General body styling and custom scrollbar */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fef2f2;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #fecaca;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Contact Form Specifics */
.subtle-gradient-border {
    position: relative;
    z-index: 1;
}
.subtle-gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    z-index: -1;
    opacity: 0.5;
    filter: blur(4px);
}
.btn-red-gradient {
    background: linear-gradient(to right, #ef4444, #dc2626);
    transition: all 0.3s ease;
}
.btn-red-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.4);
}

/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 768px) {
    .loading-text, .general-card p, .product-card p, .general-card a.button-link, .product-card a.button-link { font-size: 0.9rem; }
    .general-card, .product-card { padding: 1.5rem; }
    .general-card h3 { font-size: 1.4rem; }
    .product-card h3 { font-size: 1.3rem; }
    .team-card { padding: 1rem; }
    .team-card img { width: 100px; height: 100px; }
    .team-card h3 { font-size: 1.3rem; }
    .team-card p { font-size: 0.85rem; }
    .team-social-links a { font-size: 1.3rem; }
    .team-experience-list { font-size: 0.8rem; padding-left: 1rem; }
}

@media (max-width: 480px) {
    .loading-text { font-size: 0.9rem; }
    .loader { width: 50px; height: 50px; border-width: 6px; }
    .general-card, .product-card { padding: 1rem; }
    .general-card-icon-wrapper { width: 50px; height: 50px; font-size: 2rem; }
    .general-card h3 { font-size: 1.2rem; }
    .product-card h3 { font-size: 1.1rem; }
    .general-card p, .product-card p, .general-card a.button-link, .product-card a.button-link { font-size: 0.85rem; }
    .team-card img { width: 80px; height: 80px; }
    .team-card h3 { font-size: 1.1rem; }
    .team-card p { font-size: 0.8rem; }
    .team-social-links a { font-size: 1.1rem; }
    .team-experience-list { font-size: 0.75rem; }
}