/* ============================================
   MUHAMMAD AL ASYI - PERSONAL BRANDING WEBSITE
   Bootstrap 5 + Custom CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #1a5f4a;
    --primary-dark: #124a39;
    --primary-light: #2d8b6e;
    --secondary-color: #d4af37;
    --secondary-dark: #b8962f;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-gold);
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-description {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 95, 74, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px !important;
    margin: 0 5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.hero-content {
    color: var(--white);
    padding-top: 80px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
}

.hero-description .highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn-primary {
    background: var(--gradient-gold);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--dark-color);
}

/* Profile Image */
.hero-image {
    padding-top: 80px;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.profile-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* About Section */
.about-image {
    position: relative;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-gold);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
}

.about-text {
    color: var(--gray-color);
    margin-bottom: 15px;
    text-align: justify;
}

.personal-info {
    margin-top: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.info-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-item:hover i {
    color: var(--secondary-color);
}

.skills {
    margin-top: 25px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    padding: 8px 18px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.timeline-content h5 {
    color: var(--gray-color);
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.timeline-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Book Section */
.book-showcase {
    position: relative;
    text-align: center;
}

.book-cover {
    position: relative;
    display: inline-block;
}

.book-cover img {
    max-width: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.book-cover:hover img {
    transform: translateY(-10px) rotateY(-5deg);
}

.book-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

.book-description {
    color: var(--gray-color);
    margin-bottom: 15px;
    text-align: justify;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.book-info {
    margin-top: 20px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.info-box i {
    color: var(--primary-color);
}

.book-cta .btn {
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-gold);
    border: none;
    transition: var(--transition);
}

.book-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Content Creator Section */
.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--white);
}

.platform-card h4 {
    margin-bottom: 15px;
    color: var(--white);
}

.platform-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h6 {
    padding: 15px;
    color: var(--white);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Umrah Guide Section */
.service-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-gold);
    transform: rotateY(360deg);
}

.service-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Testimonial */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Section */
.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-text h6 {
    margin-bottom: 5px;
    color: var(--dark-color);
    font-family: 'Poppins', sans-serif;
}

.contact-text p {
    color: var(--gray-color);
    margin: 0;
}

.social-connect h6 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.social-links-large {
    display: flex;
    gap: 15px;
}

.social-link-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
}

.social-link-large.youtube {
    background: #ff0000;
}

.social-link-large.facebook {
    background: #1877f2;
}

.social-link-large.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link-large.tiktok {
    background: #000000;
}

.social-link-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-form .btn {
    padding: 15px;
    font-weight: 600;
    border-radius: var(--border-radius);
    background: var(--gradient-primary);
    border: none;
    transition: var(--transition);
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-about h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h6 {
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter h6 {
    color: var(--white);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    background: var(--gradient-gold);
    border: none;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-gold);
    color: var(--dark-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding-left: 0 !important;
        margin-top: 40px;
    }
    
    .experience-badge {
        right: 0;
    }
    
    .book-content {
        padding-left: 0 !important;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -28px;
        width: 14px;
        height: 14px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn:first-child {
        margin-right: 0 !important;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        display: inline-block;
    }
}

/* Animation for counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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