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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Alert messages */
.alert {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.08);
}

/* start */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.page-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.page-header.header-hidden {
    transform: translateY(-100%);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand a {
    display: block;
}

.brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.search-container {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}

.search-form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-form:focus-within {
    border-color: #2563eb;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-form button {
    background: #2563eb;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #1d4ed8;
}

.search-form button svg {
    width: 20px;
    height: 20px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    display: flex;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #2563eb;
}

.secondary-nav {
    background: #1f2937;
    padding: 0 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-list {
    display: flex;
    list-style: none;
    gap: 3rem;
    padding: 0.75rem 0;
}

.category-list::-webkit-scrollbar {
    height: 4px;
}

.category-list::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.category-item {
    display: flex;
}

.category-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.category-link:hover {
    color: #60a5fa;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #374151;
    padding: 1rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: none;
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-item {
    position: relative;
}

.category-item:hover>.submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.subcate {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subcate-title a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
}

.subcate-title a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

/* Main Content */
main {
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    min-height: 82vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.contact-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    margin-left: 0.5rem;
}

.social-links a {
    color: white;
    transition: transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #1f2937;
    transform: scale(1.2);
    opacity: 0.8;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.hero-visual img {
    width: 100%;
    height: auto;
}

/* Services Section */
.services-section {
    padding: 5rem 2rem;
    background: #f9fafb;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    min-height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.55) blur(1px);
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.service-card .service-icon,
.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
}

.service-link:hover .service-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.service-link:hover .service-card img {
    transform: scale(1.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    line-height: 1.7;
    max-width: 90%;
    margin: 0 auto;
    opacity: 0.9;
}

.services-footer .btn-show-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #764ba2;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.services-footer .btn-show-more:hover {
    background-color: #4B0082;
    transform: translateY(-2px);
}

/* Videos Section */
.videos-section {
    position: relative;
    padding: 2rem 12rem;
    background: #f9fafb;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mute-toggle {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #4b0082;
    color: white;
    transition: background 0.3s;
}

.mute-toggle:hover {
    background-color: #6a00c1;
}

.videos-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videos-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

.video-card {
    position: relative;
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
}

.video-card video {
    width: 100%;
    min-height: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s, filter 0.3s;
    background-color: #ccc;
}

.video-card.active video {
    transform: scale(1.05);
    filter: brightness(1);
}

.video-card:not(.active) video {
    filter: brightness(0.6);
}

/* Scroll Buttons */
.scroll-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

/* Popup / Lightbox */
.video-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: auto;
}

.video-popup.active {
    display: flex;
}

.video-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* allow clicks on video */
}

.video-popup video {
    max-height: 90vh;
    max-width: 100%;
    border-radius: 8px;
    display: block;
    pointer-events: auto;
    /* ensures controls are clickable */
    background-color: #000;
}

.close-popup {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 1010;
    pointer-events: auto;
    transition: background 0.3s;
}

.close-popup:hover {
    background: #ddd;
}

/*  */

.testimonials-section {
    padding: 5rem 2rem;
    background: white;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.testimonials-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    fill: currentColor;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Footer */
.page-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-column {
    display: flex;
    justify-content: center;
}

.footer-column p {
    margin-right: 30px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1rem 0;
    color: #9ca3af;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 1024px) {
    .header-main {
        padding: 1rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .category-list {
        gap: 2rem;
    }

    .hero-container {
        gap: 3rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .services-header h2,
    .testimonials-header h2 {
        font-size: 2rem;
    }

    .videos-section {
        padding: 2rem 6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-card {
        flex: 0 0 260px;
    }

    .scroll-btn.left {
        left: -10px;
    }

    .scroll-btn.right {
        right: -10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .brand {
        width: 100%;
        text-align: center;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
    }

    .main-nav {
        width: 100%;
    }

    .nav-list {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .secondary-nav {
        padding: 0 1rem;
    }

    .category-list {
        gap: 1.2rem;
    }

    .submenu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 0 0 1rem;
        display: none;
        opacity: 1;
        transform: none;
    }

    .category-item:hover>.submenu {
        display: block;
    }

    .subcate-title a {
        color: #d1d5db;
        font-size: 0.9rem;
    }

    .subcate-title a:hover {
        color: #60a5fa;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .videos-section {
        padding: 2rem 3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .mute-toggle {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .videos-container {
        gap: 0.8rem;
    }

    .video-card {
        flex: 0 0 220px;
    }

    .scroll-btn {
        font-size: 1.5rem;
        padding: 0.4rem 0.6rem;
    }

    .services-section,
    .testimonials-section {
        padding: 3rem 1.5rem;
    }

    .services-header h2,
    .testimonials-header h2 {
        font-size: 1.75rem;
    }

    .scroll-btn {
        display: none;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-footer {
        padding: 1.5rem 1rem;
    }

    .footer-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 40px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .category-link {
        font-size: 0.9rem;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .contact-button {
        padding: 0.75rem 1.5rem;
    }

    .services-section,
    .testimonials-section {
        padding: 2.5rem 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .services-header h2,
    .testimonials-header h2 {
        font-size: 1.5rem;
    }

    .videos-section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mute-toggle {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
    }

    .videos-container {
        gap: 0.6rem;
        padding: 0.5rem 0;
    }

    .video-card {
        flex: 0 0 180px;
    }

    .scroll-btn {
        font-size: 1.2rem;
        padding: 0.3rem 0.5rem;
    }

    .close-popup {
        top: 5px;
        right: 5px;
        font-size: 1.2rem;
        width: 25px;
        height: 25px;
        line-height: 24px;
    }

    .footer-content p {
        font-size: 0.9rem;
    }
}