/* =========================
   Base Styles
========================= */
body {
    background: #303030;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

a {
    color: #47C6F8;
    text-decoration: none;
}

a:hover {
    color: #0FF;
}

/* Headings */
h2 {
    text-align: center;
    font-size: 40px;
    padding-bottom: 40px;
}

h2 span {
    color: #28a7e9;
    font-weight: bold;
}

/* Section spacing */
#about, #team, #service, #portfolio, #contact {
    padding-top: 60px;
    padding-bottom: 40px;
}

/* =========================
   Preloader
========================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

/* Spinner animation */
.sk-spinner-wave div {
    background-color: #333;
    height: 100%;
    width: 6px;
    display: inline-block;
    animation: wave 1.2s infinite ease-in-out;
}

.sk-spinner-wave .sk-rect2 { animation-delay: -1.1s; }
.sk-spinner-wave .sk-rect3 { animation-delay: -1.0s; }
.sk-spinner-wave .sk-rect4 { animation-delay: -0.9s; }
.sk-spinner-wave .sk-rect5 { animation-delay: -0.8s; }

@keyframes wave {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}

/* =========================
   Header
========================= */
header {
    min-height: 20px;
    padding: 18px 0 10px;
}

header .fa {
    color: #28a7e9;
}

header span {
    font-weight: bold;
    padding: 0 10px 0 4px;
}

header a {
    color: #999;
    font-weight: 600;
}

header .social-icon {
    text-align: right;
}

/* Social icons */
.social-icon li {
    display: inline-block;
}

.social-icon li a {
    border: 1px solid #fff;
    border-radius: 2px;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.social-icon li a:hover {
    background: #28a7e9;
    border-color: transparent;
}

/* =========================
   Navbar
========================= */
.navbar-default {
    background: #fff;
    border: none;
    margin: 0;
    box-shadow: none;
}

.navbar-default .navbar-brand {
    font-size: 30px;
    height: 70px;
    line-height: 40px;
}

.navbar-default .navbar-nav li a {
    font-weight: bold;
    font-size: 13px;
    height: 70px;
    line-height: 40px;
}

.templatemo-nav {
    width: 100%;
    z-index: 1000;
}

.sticky {
    position: fixed;
    top: 0;
    left: 0;
}

/* =========================
   Home Section
========================= */
#home {
    background: url('../images/Portfolio-QuranRadio.png') no-repeat center center;
    background-size: cover;
    padding: 160px 0 100px;
    min-height: 650px;
}

#home h1 {
    font-weight: 300;
    font-size: 70px;
}

#home h1 span {
    color: #28a7e9;
    font-weight: bold;
}

/* Buttons (optimized transitions) */
#home .btn {
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    width: 180px;
    height: 60px;
    margin-top: 20px;
    transition: transform 0.25s ease, background 0.25s ease;
}

#home .btn:hover {
    background: #28a7e9;
    transform: translateY(-2px);
}

/* =========================
   About Section
========================= */
#about .media-heading-wrapper {
    padding-bottom: 32px;
}

#about .media-heading-wrapper .fa {
    border: 1px solid #fff;
    border-radius: 2px;
    font-size: 24px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    margin: 0 20px 20px 0;
}

/* =========================
   Team (Optimized Hover)
========================= */
#team .team-wrapper {
    background: #404040;
    padding-bottom: 10px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#team .team-wrapper:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

/* =========================
   Service
========================= */
#service .col-md-4 {
    padding: 40px;
    transition: background 0.3s ease;
}

#service .col-md-4:hover {
    background: #505050;
}

#service .fa {
    border: 1px solid #fff;
    border-radius: 2px;
    font-size: 50px;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
}

/* =========================
   Portfolio
========================= */
#portfolio .col-md-3 {
    padding: 0;
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: #28a7e9;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-thumb:hover .portfolio-overlay {
    opacity: 0.8;
}

/* =========================
   Contact
========================= */
#contact {
    background: #202020;
}

#contact .form-control {
    background: transparent;
    border: 1px solid #28a7e9;
    color: #fff;
    margin: 6px 0 16px;
}

#contact input {
    height: 50px;
}

#contact input[type="submit"] {
    background: #28a7e9;
    transition: background 0.3s ease;
}

#contact input[type="submit"]:hover {
    background: transparent;
}

/* =========================
   Copyright
========================= */
#copyright {
    padding: 20px;
}

/* =========================
   Mobile Tweaks
========================= */
@media (max-width: 767px) {
    #home {
        min-height: 300px;
        padding-top: 80px;
    }

    #home h1 {
        font-size: 52px;
    }

    .templatemo-nav {
        position: fixed;
        top: 0;
    }

    header {
        margin-top: 70px;
    }
}

@media (max-width: 360px) {
    #home h1 {
        font-size: 32px;
    }
}

/* =========================
   Payment Modal Inputs
========================= */
#paymentModal input,
#paymentModal textarea {
    color: #000;
    background: #fff;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* =========================
   City Buttons
========================= */
.city-btn {
    background: #2980b9;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    margin: 5px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.city-btn:hover {
    background: #1c5980;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.city-btn:focus {
    outline: none;
}