* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

        :root {
            --primary-color: #1a1a2e;
            --secondary-color: #067eb2;
            --accent-color: #067eb2;
            --text-light: #f8f9fa;
            --text-dark: #333;
            --section-bg: #f5f5f5;
            --transition: all 0.3s ease;
        }

body {
            background-image: url('islamic-style-lantern-design-ramadan-celebration-with-copy-space.jpg');
            background-color: #1a1a2e;
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
            height: 100%;
}

#header {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

        #bg-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        .container-head {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            position: relative;
            z-index: 10;
        }

        .logo {
            height: 70px;
            z-index: 11;
        }

        .nav-links {
            display: flex;
            list-style: none;
            transition: var(--transition);
        }

        .nav-links li {
            margin: 0 15px;
        }

        .nav-links a {
            color: var(--text-light);
            text-decoration: none;
            font-size: 18px;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-color);
            transition: var(--transition);
        }

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

        .hamburger {
            display: none;
            cursor: pointer;
            z-index: 11;
        }

        .hamburger div {
            width: 25px;
            height: 3px;
            background-color: var(--text-light);
            margin: 5px;
            transition: var(--transition);
        }

.page-title {
    color: #fff;
    text-align: center;
    margin-top: 5%;
    font-size: 4em;
    font-family: roboto slab;
}

.description{
    color: #fff;
    margin: 20px auto 40px;
    font-family: "Roboto Slab", serif;
    font-weight: 100px;
    font-style: normal;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-box {
    position: relative;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.input-search {
    height: 40px;
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    color: white;
    font-size: 16px;
    padding: 0 40px 0 10px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.input-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    transition: color 0.3s ease;
}

.btn-search:hover {
    color: rgba(255, 255, 255, 0.7);
}

.featured-topics {
    padding: 40px 5%;
    color: #fff;
    margin-top: 20px;
    font-family: "Roboto Slab", serif;
    text-align: center;
}

.featured-topics h2 {
    margin-bottom: 20px;
}

.topic-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.topic-card {
    display: block;
    min-width: 200px;
    cursor:pointer;
    border: 1px solid #067eb2;
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: 0.5s;
    flex: 1 1 200px;
    max-width: 300px;
}

.topic-card:hover {
    background: #00509e;
    transform: scale(1.05);
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.3);
    margin: 2.5em auto;
    width: 80%;
    max-width: 1000px;
}



  .container {
    display: flex;
    flex-wrap: wrap;
    /* grid-template-columns: 250px 250px 250px 250px; */
    grid-gap: 3rem;
    padding: 2rem 4rem 4rem;
    justify-content: center;
    

  }
  .container .wrapper {
    transform: skew(-10deg);
    transition: 0.25s;
    height: 100%;
  }
  .container .wrapper:before {
    content: '';
    left: 0;
    top: 0;
    height: calc(100% - 10px);
    width: calc(100% - 10px);
    border-radius: 40px;
    opacity: 0;
    border: 2px solid #ece9e6;
    position: absolute;
    z-index: -1;
    transition: 0.5s 0.05s;
  }
  .container .wrapper:hover:before {
    opacity: 1;
    transform: translateY(2px) translateX(1.5rem);
  }
  .container .wrapper:nth-child(1) .card:after {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("doa_thumbnail.jpg");
    background-size: cover;
    background-color: #373f51;
    background-blend-mode: screen;
    transform: skew(10deg) scale(1.2);
    transition: 0.25s;
  }
  .container .wrapper:nth-child(2) .card:after {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("quotes_thumbnail.jpg");
    background-size: cover;
    background-color: #373f51;
    background-blend-mode: screen;
    transform: skew(10deg) scale(1.2);
    transition: 0.25s;
  }
  .container .wrapper:nth-child(3) .card:after {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("fiqh_thumbnail.jpg");
    background-size: cover;
    background-color: #373f51;
    background-blend-mode: screen;
    transform: skew(10deg) scale(1.2);
    transition: 0.25s;
  }
  .container .wrapper:nth-child(4) .card:after {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("sirah_thumbnail.jpg");
    background-size: cover;
    background-color: #373f51;
    background-blend-mode: screen;
    transform: skew(10deg) scale(1.2);
    transition: 0.25s;
  }

  .container .wrapper:hover {
    transform: translateX(-1rem) translateY(-1rem) skew(-10deg);
  }
  .container .wrapper:hover .card {
    box-shadow: 0.5rem 0.5rem 1rem rgba(0,0,0,0.1);
  }
  .container .wrapper:hover .card:after {
    background-blend-mode: normal;
  }
  .container .wrapper:hover .card .fal {
    bottom: 4rem;
    background-color: rgba(255,255,255,0.8);
  }
  .container .card {
    background-color: #fff;
    border-radius: 40px;
    height: 15rem;
    width: 15rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }
  .container .card:after {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  .container .card .fal {
    position: absolute;
    bottom: -1rem;
    right: 3rem;
    border-radius: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    color: #373f51;
    z-index: 1;
    transform: skew(10deg) translateY(50%);
    text-align: center;
    transition: 0.25s;
  }

  .caption{
    padding: 20px 100px;
    color: #fff;
    transition: 0.5s;
    font-size: 125%;
    transform: skew(-10deg);
  }

.caption {
    padding: 20px 0;
    color: #fff;
    transition: 0.5s;
    font-size: 125%;
    transform: skew(-10deg);
    text-align: center;
}

.label-container{
    position:fixed;
    bottom:48px;
    right:105px;
    display:table;
    visibility: hidden;
}

.label-text{
    color:#FFF;
    background:rgba(51,51,51,0.5);
    display:table-cell;
    vertical-align:middle;
    padding:10px;
    border-radius:3px;
}

.float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#067eb2;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    box-shadow: 3px 3px 3px #2c2c2c;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.fullscreen-image {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
}

.fullscreen-image img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0);
    transition: transform 0.5s;
}

.close-btn {
    position: absolute;
    /* top: 40px;
    right: 380px; */
    background-color: #fff;
    color: #000;
    font-size: 16px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.close-btn:hover {
    background-color: #ccc;
    cursor: default;
}

footer {
            background: var(--primary-color);
            color: var(--text-light);
            padding: 50px 0 20px;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .footer-logo img {
            height: 80px;
            margin-bottom: 15px;
        }

        .footer-logo p {
            margin-top: 10px;
            opacity: 0.8;
        }

        .footer-links h4 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--accent-color);
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: var(--text-light);
            text-decoration: none;
            opacity: 0.8;
            transition: var(--transition);
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--accent-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            margin-top: 40px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .footer-bottom a {
            color: var(--accent-color);
            text-decoration: none;
        }



       /* Responsive Design */

        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }
            
            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: #067eb2;
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: clip-path 0.5s ease;
            }
            
            .nav-links.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .header-text h1 {
                font-size: 3.5rem;
            }
            
            .header-text p {
                font-size: 1.2rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
        }
            
            .logo {
                height: 60px;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .btn {
                padding: 10px 25px;
                font-size: 0.9rem;
            }
            
            .work-card {
                height: 250px;
            }

        /* Hamburger animation */
        .toggle .line1 {
            transform: rotate(-45deg) translate(-5px, 6px);
        }
        
        .toggle .line2 {
            opacity: 0;
        }
        
        .toggle .line3 {
            transform: rotate(45deg) translate(-5px, -6px);
        }




/* Responsive styles */
    
    

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

@keyframes zoomOut {
    from { transform: scale(1); }
    to { transform: scale(0.5); }
}

