/* =============================================
   MienzTech - Main Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --gradient: linear-gradient(135deg, #1e40af, #06b6d4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* --- Base --- */
* { font-family: 'Inter', sans-serif; }
body { color: var(--text-dark); overflow-x: hidden; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 100px 0;
}

/* --- Navbar --- */
.navbar {
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    transition: color 0.3s;
}

.navbar.scrolled .brand-text {
    color: var(--text-dark);
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-link {
    color: var(--text-muted) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary) !important;
    background: rgba(59,130,246,0.08);
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 10px;
}

.navbar.scrolled .navbar-toggler {
    border-color: #e2e8f0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 41, 59, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- WhatsApp Button --- */
.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 40%, #0d2137 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(6,182,212,0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(59,130,246,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(59,130,246,0.2); }
    to { box-shadow: 0 0 40px rgba(59,130,246,0.4); }
}

.hero-stats {
    display: flex;
    gap: 40px;
    position: relative;
}

.hero-stats .stat-item {
    text-align: left;
}

.hero-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.hero-stats .stat-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-graphic {
    width: 320px;
    height: 320px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    opacity: 0.9;
    box-shadow: 0 0 100px rgba(59,130,246,0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(59,130,246,0.3);
    animation: spin 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 16px;
}

.section-badge {
    display: inline-block;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Service Card --- */
.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* --- Product Card --- */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 24px;
}

.product-info h4 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price-detail {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- Feature Card --- */
.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 20px;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* --- Page Hero --- */
.page-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 40%, #0d2137 100%);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(59,130,246,0.1) 0%, transparent 60%);
}

.page-hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* --- Service Detail Content --- */
.service-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

.service-detail-content h3, .service-detail-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.service-detail-content ul {
    padding-left: 24px;
}

.service-detail-content li {
    margin-bottom: 8px;
}

/* --- Contact Info --- */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- Footer --- */
.footer-section {
    background: var(--bg-dark);
    padding: 80px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .brand-text {
    color: white;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 2px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

/* --- Form Controls (Frontend) --- */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-label {
    font-size: 0.9rem;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

.btn-outline-light {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 24px;
    border-width: 2px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* --- Stat Card (Frontend) --- */
.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .page-hero {
        padding: 130px 0 60px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .page-hero-title {
        font-size: 1.7rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* --- Modal --- */
.modal-content {
    border: none;
}

.modal-body .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
}

.modal-body .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* --- About Content --- */
.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

/* --- Pamphlet Viewer --- */
.pamphlet-viewer {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.pamphlet-viewer iframe {
    background: white;
}

/* --- Misc --- */
.rounded-4 {
    border-radius: 16px !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}