   /* Custom animations and effects */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes grain {
            0%, 100% { transform: translate(0, 0); }
            10% { transform: translate(-5%, -10%); }
            20% { transform: translate(-15%, 5%); }
            30% { transform: translate(7%, -25%); }
            40% { transform: translate(-5%, 25%); }
            50% { transform: translate(-15%, 10%); }
            60% { transform: translate(15%, 0%); }
            70% { transform: translate(0%, 15%); }
            80% { transform: translate(3%, 35%); }
            90% { transform: translate(-10%, 10%); }
        }

        .animate-fadeInUp {
            animation: fadeInUp 1s ease-out;
        }

        .animate-fadeInUp-delay-300 {
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        .animate-fadeInUp-delay-600 {
            animation: fadeInUp 1s ease-out 0.6s both;
        }
        .header {background:  rgba(249, 250, 252, 0.8) !important;}
        .header.freezed {display: block !important; position: fixed; backdrop-filter: blur(20px); width: 100%; top:0; left: 0; z-index: 999; background:  rgba(249, 250, 252, 0.8) !important;  top: 0; left: 0; right: 0; z-index: 1000; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.20); }
.header-logo{ z-index: 1; width: 120px; top:0; left: 0;}
        .hero-grain::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            animation: grain 20s linear infinite;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #3F77BC;
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .quote-marks::before,
        .quote-marks::after {
            content: '"';
            font-size: 4rem;
            color: #3F77BC;
            position: absolute;
        }

        .quote-marks::before {
            top: -1rem;
            left: -2rem;
        }

        .quote-marks::after {
            bottom: -2rem;
            right: -2rem;
        }

        .cta-shimmer {
            position: relative;
            overflow: hidden;
        }

        .cta-shimmer::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
.btn {background: rgba(249, 250, 252, 0.2); border: 2px solid rgba(249, 250, 252, 0.3); backdrop-filter: blur(5px);}
        .cta-shimmer:hover::before {
            left: 100%;
        }
.service-card-overlay { background: rgba(249, 250, 252, 0.1);}
        .service-card-overlay::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(249, 250, 252, 0.1);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .service-card-overlay:hover::before {
            opacity: 1;
        }
        .footer-bg {
           background:  linear-gradient(135deg, #0f54a9, rgb(38, 113, 204));
        }
        .gradient-text {
            background:  linear-gradient(135deg, #0f54a9, rgb(38, 113, 204));
           
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .logo-square {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #2563eb, #1e40af);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
            color: white;
            letter-spacing: -0.02em;
        }

        html {
            scroll-behavior: smooth;
        }

        .hero {
            background:url(../images/home-hero-bg.jpg);
        }
          .hero::after{content:''; background: linear-gradient(135deg,  #0353bb, #363d4d); height: 100%; opacity: 0.8; position: absolute; top:0; left:0; right:0; bottom:0; z-index: 0;}
.tfr-bg {background: linear-gradient(45deg, #dbe6f3, rgb(133 148 171 / 50%)); border-top:solid 10px #FFFFFF; border-bottom:solid 10px #FFFFFF;}
          .quote-bg { background: #cfddee !important; position: relative;}
          .quote-bg:after {content:''; background: url(../images/paper-bg-effect.png) center/contain; height: 100%; opacity: 0.5; position: absolute; top:0; left:0; right:0; bottom:0; z-index: 0;}
          .services-bg { background: radial-gradient( #5d84b4, rgb(43, 92, 156));}
.work-bg {background: url(../images/work-banner.jpg) center/cover;}
          #menu.open {position: fixed; display: block; top:0px; height: 100vh; left: 0; right: 0; background: linear-gradient(135deg,  rgb(3, 83, 187,0.9), rgb(54, 61, 77,0.9)); backdrop-filter: blur(30px); padding: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1001;}
             #menu.open {margin: 0px 0; padding: 100px 0;}  
             #menu.open li {text-align: center;}
          #menu.open li a {color:#FFF; font-size: 18px; text-indent: 0; margin: 0; padding: 0;}
          #menu .closeMenu {position: fixed; right:50px; top:40px; font-size: 22px; color: #FFF; text-decoration: none; z-index: 1002;}


            .category {
            margin-bottom: 50px;
        }

        .category-title {
            color: rgb(0, 0, 0);
            font-size: 1.8rem;
            margin-bottom: 20px;
            padding: 10px 0;
            font-weight: 700;
            border-bottom: 2px solid rgba(255,255,255,0.3);
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }

        .video-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.25);
        }

        .video-thumbnail {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }

        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: rgba(255, 0, 0, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .play-icon::before {
            content: '';
            width: 0;
            height: 0;
            border-left: 20px solid white;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            margin-left: 3px;
        }

        .video-card:hover .play-icon {
            transform: translate(-50%, -50%) scale(1.1);
            background: rgba(255, 0, 0, 1);
        }

        .video-info {
            padding: 20px;
        }

        .video-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            font-weight: bold;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .video-id {
            color: #666;
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }

        .modal-content {
            position: relative;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            background: #000;
            border-radius: 10px;
            overflow: hidden;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .modal.show .modal-content {
            transform: scale(1);
        }

        .close-btn {
            position: absolute;
            top: -50px;
            right: 0;
            color: white;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            background: rgba(0,0,0,0.7);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255,0,0,0.7);
        }

        .video-player {
            width: 100%;
            aspect-ratio: 16/9;
        }

        /* Loading Animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        .whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  line-height: 60px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #20b954;
}

#toast.show {
    display: block;
    animation: fadein 0.5s, fadeout 0.5s 3s;
  }
  @keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeout {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
  }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .category-title {
                font-size: 1.5rem;
            }
            
            .modal-content {
                width: 95%;
            }
            
            .close-btn {
                top: -45px;
                font-size: 25px;
                width: 35px;
                height: 35px;
            }
        }

        @media (max-width: 480px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 1.8rem;
                margin-bottom: 30px;
            }
        }