/* =============================================
   KHING HTET SAN CO., LTD - Custom Styles
   ============================================= */

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Social Buttons (Small - for footer) ===== */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

/* ===== Social Buttons (Grid style - hero section) ===== */
.social-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    transition: all 0.3s ease;
}

.social-grid-btn:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
    color: #000000;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.social-grid-btn:active {
    transform: translateY(0);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #E4C34A 0%, #D4AF37 100%);
}

.social-btn:active {
    transform: translateY(-1px);
}

/* ===== Service Cards ===== */
.service-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #D4AF37;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
    color: #000000;
    transform: scale(1.1);
}

/* ===== Project Cards ===== */
.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.project-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 41, 55, 1) 0%, rgba(17, 24, 39, 1) 100%);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ===== Contact Cards ===== */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
    color: #000000;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E4C34A;
}

/* ===== Selection Styling ===== */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #FFFFFF;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: #FFFFFF;
}

/* ===== Focus States (Accessibility) ===== */
a:focus,
button:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .social-btn {
        width: 48px;
        height: 48px;
    }

    .social-btn i {
        font-size: 1rem;
    }
}

/* ===== Loading Shimmer Effect ===== */
.shimmer {
    background: linear-gradient(90deg,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(212, 175, 55, 0.2) 50%,
            rgba(212, 175, 55, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== Pulse Effect for CTAs ===== */
.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
        color: black;
    }

    .social-btn,
    #backToTop,
    iframe {
        display: none !important;
    }
}