/* 
  Way2Ways Custom CSS
  Author: Created for Sherkhan Pathan's Business Consultancy Website
  Version: 1.0
*/

/* ======== General Styling ======== */
:root {
    /* Updated color scheme based on logo - gold and black */
    --primary-color: #D4AF37; /* Gold */
    --primary-dark: #B8860B; /* Darker gold */
    --primary-light: #FFD700; /* Lighter gold */
    --secondary-color: #000000; /* Black */
    --text-dark: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #212529; /* Dark background */
    --border-color: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Playfair Display', 'Montserrat', sans-serif; /* More professional fonts */
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

p {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-left h2:after {
    margin: 0;
}

/* ======== Navigation Bar ======== */
.navbar {
    padding: 1rem 0;
    background-color: var(--secondary-color); /* Dark navbar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar .nav-link {
    color: var(--white); /* White text for dark navbar */
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar .nav-link:hover:after, .navbar .nav-link.active:after {
    width: 100%;
}

.navbar .nav-link.active, .navbar .nav-link:hover {
    color: var(--primary-color);
}

/* Update navbar toggler for dark background */
.navbar-toggler {
    border-color: rgba(255,255,255,0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ======== Hero Section ======== */
.hero-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    box-shadow: var(--box-shadow);
}

.cta-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* ======== Page Header ======== */
.page-header {
    background-color: var(--light-bg);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-weight: 700;
    color: var(--primary-color);
}

/* ======== Services Section ======== */
.services-preview {
    padding: 5rem 0;
}

.service-card {
    padding: 2rem;
    text-align: center;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* ======== About Preview Section ======== */
.about-preview {
    padding: 5rem 0;
}

.about-image {
    box-shadow: var(--box-shadow);
}

.about-preview .credentials .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ======== About Page Styles ======== */
.about-section {
    padding: 5rem 0;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    min-height: 150px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.timeline h4 {
    color: var(--text-dark);
    font-weight: 500;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 500;
}

.qualification-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.qualification-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.qualification-date, .qualification-number {
    color: var(--text-light);
    font-style: italic;
}

.skills-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.skills-card .icon-box {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skills-list {
    padding-left: 1.5rem;
}

.skills-list li {
    margin-bottom: 0.5rem;
}

/* ======== Services Page Styles ======== */
.services-intro {
    padding: 3rem 0;
}

.service-category {
    padding: 5rem 0;
}

.approach-step {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ======== Certificates Page Styles ======== */
.certificate-card {
    padding: 0;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 100%;
    overflow: hidden;
}

.certificate-header {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.certificate-header i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.certificate-header h3 {
    color: var(--white);
    margin-bottom: 0;
}

.certificate-body {
    padding: 1.5rem;
}

.certificate-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.training-card {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.training-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ======== Gallery Page Styles ======== */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8); /* primary color with opacity */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    padding: 20px;
    color: var(--white);
}

.gallery-info h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.nav-pills .nav-link {
    color: var(--text-dark);
    border-radius: 30px;
    margin: 0 5px;
    padding: 8px 20px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

/* ======== Contact Page Styles ======== */
.contact-info-card, .contact-form-card {
    padding: 2.5rem;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.contact-info-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-dark);
}

.map-container {
    overflow: hidden;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hours-table {
    margin-bottom: 2rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.hours-row:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
}

.time {
    color: var(--primary-color);
    font-weight: 500;
}

/* ======== Testimonials Section ======== */
.testimonials {
    padding: 5rem 0;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text i {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-light);
}

/* ======== CTA Section ======== */
.cta-section {
    background-color: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section:after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* ======== Footer ======== */
.footer {
    background-color: #f8f9fa;
    padding: 5rem 0 3rem;
    color: var(--text-dark);
}

.footer h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-dark);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: var(--light-bg);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ======== WhatsApp Button ======== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--white);
    background-color: #128C7E;
}

/* ======== Responsive Adjustments ======== */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .timeline:before {
        left: 40px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
    }
    
    .timeline-dot {
        left: 40px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        left: 80px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .service-card, .testimonial-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
}