﻿/*
    Afzal Theme - Professional Banking Styles
    Inspired by Bank Melli & Bank Melat
*/

/* === Gradient Overlays === */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(0,35,70,0.75) 50%, rgba(0,20,40,0.65) 100%);
    z-index: 1;
}

.gradient-overlay-gold {
    background: linear-gradient(135deg, rgba(212,175,55,0.9) 0%, rgba(180,140,30,0.85) 100%);
}

/* === Hero Slider - Banking Style === */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #001a33;
}

.hero-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,100,200,0.2) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,26,51,0.9) 0%, rgba(0,51,102,0.7) 100%);
    z-index: 1;
}

.hero-slide {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.05);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

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

.hero-slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-slide-content h2 span {
    color: #d4af37;
}

.hero-slide-content p {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-slide-content .btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
    color: #001a33;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slide-content .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212,175,55,0.6);
    background: linear-gradient(135deg, #e5c14d 0%, #d4af37 100%);
}

/* === Quick Services Bar === */
.quick-services {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.quick-service-item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-service-item:last-child {
    border-left: none;
}

.quick-service-item:hover {
    background: rgba(212,175,55,0.15);
}

.quick-service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #001a33;
    transition: transform 0.3s ease;
}

.quick-service-item:hover .quick-service-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-service-item h3 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.quick-service-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* === Services Section - Banking Cards === */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.services-section .section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.services-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.services-section .section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8942e);
    border-radius: 2px;
}

.services-section .section-title p {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,51,102,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,51,102,0.08);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, transparent 100%);
    border-radius: 0 16px 0 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,51,102,0.15);
    border-color: rgba(212,175,55,0.3);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: #d4af37;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
    color: #001a33;
    transform: rotate(-5deg) scale(1.05);
}

.service-card h3 {
    font-size: 1.35rem;
    color: #003366;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-card .btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-card .btn-service::after {
    content: "\2039\2039";
    transition: transform 0.3s ease;
}

.service-card:hover .btn-service::after {
    transform: translateX(-5px);
}

/* === News Section === */
.news-section {
    padding: 5rem 0;
    background: #ffffff;
}

.news-section .section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.news-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.news-section .section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8942e);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,51,102,0.12);
}

.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
    color: #001a33;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-content h3 {
    font-size: 1.1rem;
    color: #003366;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.news-card-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === About Section === */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.about-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-content h2 span {
    color: #d4af37;
}

.about-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-stat {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(212,175,55,0.2);
    transition: all 0.3s ease;
}

.about-stat:hover {
    background: rgba(212,175,55,0.15);
    transform: translateY(-3px);
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d4af37;
    display: block;
    margin-bottom: 0.25rem;
}

.about-stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(212,175,55,0.5);
    border-radius: 8px;
    z-index: 1;
}

/* === CTA Section === */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    color: #001a33;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section p {
    color: rgba(0,26,51,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #003366;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,51,102,0.3);
}

.btn-cta:hover {
    background: #001a33;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,51,102,0.4);
    color: #ffffff;
}

/* === Header Top Bar === */
.header-top {
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-info {
    display: flex;
    gap: 2rem;
}

.header-top-info span {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top-social {
    display: flex;
    gap: 1rem;
}

.header-top-social a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.header-top-social a:hover {
    color: #d4af37;
}

/* === Main Header === */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo img {
    max-height: 65px;
    width: auto;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #003366;
    margin: 0;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.main-navigation a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #003366;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #d4af37;
    background: rgba(0,51,102,0.05);
}

/* === Mobile Menu === */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #003366;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    color: #ffffff;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-column h3 {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
    border-radius: 2px;
}

.footer-column p,
.footer-column li {
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    font-size: 0.95rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: "\2039";
    color: #d4af37;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
    padding-right: 0.5rem;
}

.footer-links a:hover::before {
    transform: translateX(-3px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.75);
}

.footer-contact a:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(212,175,55,0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
    color: #001a33;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-service-item:nth-child(2) {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .hero-slider,
    .hero-slide {
        height: 450px;
    }
    
    .hero-slide-content h2 {
        font-size: 2rem;
    }
    
    .hero-slide-content p {
        font-size: 1rem;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-services {
        margin-top: 0;
        border-radius: 0;
    }
    
    .quick-services-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-service-item {
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .header-top-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slider,
    .hero-slide {
        height: 380px;
    }
    
    .hero-slide-content h2 {
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* === Hero Slider Controls === */
.hero-slides-container {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,51,102,0.7) 0%, rgba(0,26,51,0.8) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(212,175,55,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #001a33;
}

.hero-arrow:hover {
    background: #d4af37;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow.prev {
    right: 2rem;
}

.hero-arrow.next {
    left: 2rem;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(212,175,55,0.6);
}

.hero-dot.active {
    background: #d4af37;
    border-color: #ffffff;
    transform: scale(1.2);
}

/* === Footer About === */
.footer-about {
    max-width: 320px;
}

.footer-logo h3 {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* === Scroll Animations === */
.service-card,
.news-card,
.about-stat {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.news-card.visible,
.about-stat.visible {
    opacity: 1;
    transform: translateY(0);
}
