/* ========================================
   AI-STARTUP.HK - Custom Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #41c2a9;
    --primary-dark: #0d435d;
    --primary-light: #508186;
    --secondary-color: #508186;
    --accent-color: #41c2a9;
    --whatsapp-color: #25D366;
    --text-dark: #0d435d;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f0f7f5;
    --bg-white: #ffffff;
    --border-color: #d1e7e0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* ========================================
   Navbar
   ======================================== */
#mainNav {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.navbar-scrolled {
    background: rgba(13, 67, 93, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

/* Mobile menu background - fix transparent issue */
@media (max-width: 991px) {
    #navbarNav {
        background: rgba(13, 67, 93, 0.98);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius);
        margin-top: 10px;
        padding: 10px;
        box-shadow: var(--shadow-lg);
    }
    #mainNav.navbar-scrolled #navbarNav {
        background: rgba(13, 67, 93, 0.98);
    }
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.5px;
}

#mainNav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
}

#mainNav .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

#mainNav .nav-link.active {
    color: #fff !important;
    background: var(--primary-color);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color) !important;
    border-color: var(--whatsapp-color) !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 67, 93, 0.88) 0%, rgba(65, 194, 169, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 194, 169, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* Swiper Navigation */
.hero-nav-next,
.hero-nav-prev {
    color: #fff !important;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.hero-nav-next:hover,
.hero-nav-prev:hover {
    background: rgba(255,255,255,0.3);
}

.hero-nav-next::after,
.hero-nav-prev::after {
    font-size: 1.2rem !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   Section General
   ======================================== */
.section {
    padding: 80px 0;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--bg-white);
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-body);
    margin-bottom: 15px;
    text-align: justify;
}

.about-features {
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item i {
    font-size: 1.2rem;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    background: var(--bg-light);
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-icon {
    margin-bottom: 20px;
    text-align: center;
}

.service-icon img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-list li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    font-size: 0.8rem;
}

/* ========================================
   Process Section
   ======================================== */
.process-section {
    background: var(--bg-white);
}

.process-step {
    padding: 30px 20px;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -15px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #41c2a9, #508186);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(65, 194, 169, 0.3);
}

.process-step h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Connector line between steps (desktop only) */
@media (min-width: 768px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 65px;
        right: -30px;
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, #41c2a9, #508186);
        opacity: 0.3;
    }
    .col-md-3:last-child .process-step::after {
        display: none;
    }
}

/* ========================================
   Case Study Section
   ======================================== */
.case-section {
    background: var(--bg-white);
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.case-content {
    padding: 40px;
}

.case-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.case-desc {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 25px;
}

.case-results {
    margin-bottom: 10px;
}

.result-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.case-actions .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 50px;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: normal;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h6 {
    margin-bottom: 3px;
    font-size: 1rem;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    opacity: 0.4;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-white);
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.6rem;
}

.whatsapp-bg { background: linear-gradient(135deg, #25D366, #128C7E); }
.phone-bg { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); }
.email-bg { background: linear-gradient(135deg, #f59e0b, #f97316); }

.contact-card h5 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-detail {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.qr-code {
    display: inline-block;
    padding: 10px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.qr-code img {
    border-radius: 8px;
}

.qr-hint {
    font-size: 0.8rem;
}

.address-box {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    border: 1px solid var(--border-color);
    color: var(--text-body);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #0d435d 0%, #41c2a9 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-section .btn-light {
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 50px;
    color: #0d435d;
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #0a2e3f;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link.whatsapp {
    background: var(--whatsapp-color);
}

.social-link.email {
    background: #f59e0b;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    filter: brightness(1.1);
}

.footer h6 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 5px;
    color: #41c2a9;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding: 25px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   WhatsApp Floating Button with Ripple
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Ripple effect */
.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    transform: translate(-50%, -50%) scale(1);
    animation: whatsappRipple 2s infinite;
    z-index: -1;
}

.whatsapp-float::after {
    animation-delay: 0.5s;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes whatsappRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

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

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .case-content {
        padding: 30px;
    }
    
    .process-step::after {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-swiper {
        min-height: 500px;
        height: auto;
    }
    
    .hero-slide {
        min-height: 500px;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .case-content {
        padding: 25px;
    }
    
    .case-title {
        font-size: 1.4rem;
    }
    
    .case-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
    
    .cta-section h2 {
        font-size: 1.7rem;
    }
    
    .footer {
        padding-top: 40px;
    }
    
    .process-step {
        margin-bottom: 20px;
    }
    
    .hero-nav-next,
    .hero-nav-prev {
        display: none !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #mainNav,
    .hero-section,
    .back-to-top,
    .cta-section,
    .footer {
        display: none !important;
    }
    
    .section {
        padding: 20px 0 !important;
    }
}
