/* Base Styles and Variables */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #7f8c8d;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typography */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    position: relative;
}

/* Gallery */
.gallery-item {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.25rem;
    background: #fff;
}

.gallery-caption h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.gallery-caption p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal Gallery */
#galleryModal .modal-dialog {
    max-width: 800px;
}

#galleryModal .modal-body {
    padding: 0;
}

#galleryModal .carousel-item img {
    max-height: 70vh;
    object-fit: contain;
    background: #f8f9fa;
}

#galleryModal .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
}

#galleryModal .carousel-caption p {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typography */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    position: relative;
}

/* Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Profile Header */
.profile-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.profile-photo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.profile-header h1 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.profile-header .lead {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

/* Navigation */
.nav-tabs {
    border: none;
    margin: 40px 0 30px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nav-tabs .nav-link {
    color: var(--text-light);
    font-weight: 600;
    border: none;
    padding: 12px 30px;
    margin: 0 5px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: transparent;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header,
    .section {
        padding: 20px;
        margin: 15px 0;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tabs .nav-link {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
}
