/* Custom Styles for Personal Services Website */
/* Requirements: 7.1, 7.2, 7.3 - Bootstrap framework with external CSS, minimal inline styles */

/* ============================================
   CSS Variables / Custom Properties
   ============================================ */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    zoom: 1.2;
}

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

/* ============================================
   Profile Photo Wrapper with Logo
   ============================================ */
.profile-photo-wrapper {
    position: relative;
    display: inline-block;
}

.site-logo {
    position: absolute;
    left: -180px;
    top: -20px;
    height: 80px;
    width: auto;
}

@media (max-width: 767.98px) {
    .site-logo {
        left: -70px;
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        position: static;
        display: block;
        margin: 0 auto 1rem;
        height: 50px;
    }
}

/* ============================================
   Profile Section
   ============================================ */
.profile-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.profile-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.profile-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.profile-tagline a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.profile-tagline a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* ============================================
   Service Cards
   ============================================ */
.service-cards-section {
    padding: 0 0 4rem 0;
}

.service-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    min-height: 250px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    transition: background var(--transition-speed) ease;
}

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

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.45);
}

.service-card .card-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card-link {
    color: inherit;
    text-decoration: none;
}

.service-card-link:hover {
    color: inherit;
}



/* ============================================
   Service List Items
   ============================================ */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.service-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--card-shadow-hover);
}

.service-list-item.service-clickable {
    cursor: pointer;
}

.service-list-item.service-clickable:hover {
    background: var(--bg-light);
}

.service-list-item .service-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.service-list-item .service-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-list-item .service-description {
    color: var(--text-muted);
    margin-bottom: 0;
}


/* ============================================
   Image Gallery
   ============================================ */
.image-gallery {
    padding: 2rem 0;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-info {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info .contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 40px;
}

.contact-info .contact-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-info .contact-text a {
    color: var(--secondary-color);
}

.contact-info .contact-text a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-form .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .footer-content {
    text-align: center;
}

.site-footer .footer-phone {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.site-footer .footer-phone a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer .footer-phone a:hover {
    color: var(--secondary-color);
}

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

/* ============================================
   Education Page Tabs
   ============================================ */
.education-tabs .nav-tabs {
    border-bottom: 2px solid var(--bg-light);
}

.education-tabs .education-nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1.25rem 2rem;
    border: none;
    border-bottom: 4px solid transparent;
    transition: all var(--transition-speed) ease;
}

.education-tabs .education-nav-tabs .nav-link:hover {
    color: var(--secondary-color);
    border-color: transparent;
}

.education-tabs .education-nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--secondary-color);
}

.education-tabs .tab-content {
    padding: 2rem 0;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: all var(--transition-speed) ease;
}

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

.external-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
}

.external-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.external-link-text {
    color: var(--text-muted);
    font-style: italic;
}


/* ============================================
   Page Headers with Banner Images
   ============================================ */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .lead {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Utility Classes
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================
   Responsive Design Adjustments
   ============================================ */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .profile-name {
        font-size: 2.2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .profile-section {
        padding: 3rem 0;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .education-tabs .education-nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.25rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .profile-section {
        padding: 2rem 0;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-tagline {
        font-size: 1rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    .service-cards-section {
        padding: 2rem 0;
    }
    
    .service-card .card-title {
        font-size: 1.25rem;
    }
    
    .service-card .card-icon {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .education-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .education-tabs .education-nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .site-footer {
        padding: 1.5rem 0;
    }
    
    .site-footer .footer-phone {
        font-size: 1.1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .service-card .card-body {
        padding: 1.25rem;
    }
    
    .service-list-item {
        padding: 1rem;
    }
    
    .service-list-item .service-icon {
        font-size: 1.5rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}


/* ============================================
   Category Description (Education Page)
   ============================================ */
.category-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
