/* ============================================================================
   APP.CSS - Custom Styles for Songma Website
   Design System: Navy (#0f172a) + Green (#10b981) + White
   ============================================================================ */

/* Tailwind CDN overrides & custom utilities */
[x-cloak] { display: none !important; }

/* ============================================================================
   SWIPER SLIDER CUSTOMIZATION
   ============================================================================ */
.hero-slider {
    width: 100%;
    height: 400px;
}
@media (min-width: 640px) { .hero-slider { height: 500px; } }
@media (min-width: 768px) { .hero-slider { height: 550px; } }
@media (min-width: 1024px) { .hero-slider { height: 650px; } }

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slider .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
}

.hero-slider .swiper-slide-active .slide-bg {
    transform: scale(1.08);
}

.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 50%, rgba(15,23,42,0.2) 100%);
}

.hero-slider .slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .hero-slider .slide-content { padding: 0 4rem; }
}

.hero-slider .slide-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

@media (min-width: 768px) { .hero-slider .slide-content h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero-slider .slide-content h2 { font-size: 3rem; } }

.hero-slider .slide-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

@media (min-width: 768px) { .hero-slider .slide-content p { font-size: 1.125rem; } }

.hero-slider .slide-content .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #10b981;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.7s, background 0.3s;
}

.hero-slider .slide-content .slide-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.3);
}

.hero-slider .swiper-slide-active .slide-content h2,
.hero-slider .swiper-slide-active .slide-content p,
.hero-slider .swiper-slide-active .slide-content .slide-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper pagination */
.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #10b981;
    width: 36px;
    border-radius: 6px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.hero-slider:hover .swiper-button-next,
.hero-slider:hover .swiper-button-prev {
    opacity: 1;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: #10b981;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* ============================================================================
   ANIMATED STATS COUNTER
   ============================================================================ */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

@media (min-width: 768px) { .stat-number { font-size: 3rem; } }

/* ============================================================================
   SERVICE CARDS
   ============================================================================ */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-color: #10b981;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================================================
   PRODUCT CARDS
   ============================================================================ */
.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.product-card .product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ============================================================================
   PROJECT CARDS
   ============================================================================ */
.project-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    group: project;
}

.project-card .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.1) 60%);
    transition: all 0.3s;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 50%);
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: #ef4444;
}

/* ============================================================================
   SMOOTH ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Stagger delay */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ============================================================================
   PROSE / CONTENT STYLES
   ============================================================================ */
.prose h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 1.5rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; color: #0f172a; margin: 1.25rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.375rem; line-height: 1.6; }
.prose strong { font-weight: 600; color: #0f172a; }
.prose a { color: #10b981; text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; text-align: left; font-size: 0.875rem; }
.prose th { background: #f8fafc; font-weight: 600; }

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */
@media (max-width: 640px) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev { display: none; }
    
    .hero-slider .slide-content .slide-btn {
        width: 100%;
        justify-content: center;
    }
}
