:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-alt: #1e293b;
    --light-bg: #f1f5f9;
    --surface: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Typography Enhancements */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Main Navigation Bar */
.main-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.main-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navbar .nav-link {
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 14px !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.main-navbar .nav-link:hover, .main-navbar .nav-link.active {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 132, 199, 0.85) 100%),
                url('../images/hero.png') center/cover no-repeat;
    padding: 120px 0 150px;
    color: white;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-title {
    font-weight: 800;
    font-size: 4.5rem;
    margin-bottom: 25px;
    letter-spacing: -2px;
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 45px;
    max-width: 700px;
    margin-inline: auto;
    line-height: 1.6;
}

/* Custom Buttons - Premium Feel */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.4);
    color: white;
}

.btn-custom-blog {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-custom-blog:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Info Bar with Glassmorphism */
.info-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

.info-item i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Illustration Section */
.illustration-section {
    padding: 80px 0;
    background: var(--surface);
}

/* Service Cards - 3D Hover Effects */
.category-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 35px 25px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(16, 185, 129, 0.03));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

.category-card:hover::after {
    opacity: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.category-card:hover .icon-wrapper {
    background: var(--primary);
    transform: rotate(10deg);
}

.category-card:hover .icon-wrapper i {
    color: white !important;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

.category-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

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

.service-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start; /* Better alignment for long text */
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}

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

.service-list li i {
    color: var(--secondary);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 0.9rem;
}

/* Footer styling */
.premium-footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
    margin-top: 80px;
    position: relative;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Google Translate Premium Styling */
.top-bar {
    background: var(--dark);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#google_translate_element select {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
}
#google_translate_element select option {
    background: var(--dark);
    color: white;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important; 
}
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

/* Custom Sidebar Layout for Desktop */
@media (min-width: 1200px) {
    body:not(.no-sidebar) {
        padding-left: 260px;
    }
    body.no-sidebar {
        padding-left: 0 !important;
    }
    body.no-sidebar .main-navbar {
        display: none !important;
    }

    .top-bar {
        position: relative;
        z-index: 1040;
    }

    .main-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 15px;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: none !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.03);
    }

    .main-navbar .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .main-navbar .navbar-brand {
        margin-bottom: 1.5rem;
        font-size: 1.15rem !important;
        display: block !important;
        text-align: center;
        width: 100%;
        white-space: nowrap;
        overflow: visible;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .main-navbar .navbar-collapse {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        align-items: flex-start !important;
    }

    .main-navbar .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        gap: 0.5rem;
    }

    .main-navbar .nav-item {
        width: 100%;
        margin: 0 !important;
    }

    .main-navbar .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 16px !important;
        border-radius: 12px;
        font-size: 1rem;
        width: 100%;
    }

    .main-navbar .nav-link i.d-xl-none {
        display: inline-block !important;
        margin-right: 12px !important;
        font-size: 1.2rem;
    }
    
    .main-navbar .dropdown {
        width: 100%;
    }

    .main-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        margin-top: 10px;
        background: rgba(255,255,255,0.5);
        width: 100%;
    }
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    z-index: 1050;
    transition: all 0.3s;
    text-decoration: none;
}
.floating-back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
    color: white;
}

/* ==================== Photo Slideshow ==================== */
.slideshow-section {
    padding: 60px 0 40px;
    background: var(--surface);
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    background: #0f172a;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 8s ease-in-out infinite alternate;
}

.slide.active img {
    animation: kenBurnsActive 8s ease-in-out forwards;
}

@keyframes kenBurnsActive {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Slide Caption */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 5;
}

.slide-caption span {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.slideshow-container:hover .slide-arrow {
    opacity: 1;
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Dot Indicators */
.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot.active {
    background: white;
    border-color: white;
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.slide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 0 3px 3px 0;
}

/* Thumbnail Strip */
.slide-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 8px 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.slide-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.slide-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.slide-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.slide-thumb {
    flex: 0 0 auto;
    width: 90px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.slide-thumb.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.slide-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-container {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        opacity: 1;
    }

    .slide-prev { left: 8px; }
    .slide-next { right: 8px; }

    .slide-caption span {
        font-size: 0.95rem;
    }

    .slide-thumb {
        width: 70px;
        height: 48px;
        border-radius: 8px;
    }

    .slideshow-section {
        padding: 40px 0 30px;
    }
}

/* ==================== Video Gallery ==================== */
.video-gallery-section {
    padding: 60px 0 50px;
    background: var(--light-bg);
    overflow: hidden;
}

/* Marquee Wrapper */
.vg-marquee-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.vg-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: videoMarquee var(--marquee-duration, 30s) linear infinite;
}

.vg-marquee-wrapper:hover .vg-marquee-track {
    animation-play-state: paused;
}

.vg-marquee-item {
    flex: 0 0 auto;
    width: 340px;
}

@keyframes videoMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Video Card */
.vg-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.vg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(14, 165, 233, 0.15);
}

.vg-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Thumbnail */
.vg-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.vg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vg-card:hover .vg-thumb img {
    transform: scale(1.08);
}

.vg-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.vg-thumb-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Play Button */
.vg-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.vg-card:hover .vg-play-btn {
    background: rgba(0, 0, 0, 0.35);
}

.vg-play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vg-play-icon .bi-youtube {
    color: #ff0000;
    font-size: 1.8rem;
}

.vg-card:hover .vg-play-icon {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Type Badge */
.vg-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vg-type-badge.youtube {
    background: rgba(255, 0, 0, 0.85);
    color: white;
}

.vg-type-badge.upload {
    background: rgba(14, 165, 233, 0.85);
    color: white;
}

/* Info */
.vg-info {
    padding: 16px 18px 18px;
}

.vg-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Video Modal Overlay */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 20px;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 100%;
    max-width: 900px;
    position: relative;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.video-modal-player {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Video Gallery Responsive */
@media (max-width: 768px) {
    .video-gallery-section {
        padding: 40px 0 30px;
    }

    .vg-marquee-item {
        width: 280px;
    }

    .vg-marquee-track {
        gap: 16px;
    }

    .vg-play-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .vg-play-icon .bi-youtube {
        font-size: 1.5rem;
    }

    .video-modal-content {
        max-width: 100%;
    }

    .video-modal-close {
        top: -40px;
        right: 5px;
    }
}
