/* Base Styles */
:root {
    --primary-color: #121212;
    --secondary-color: #f8f8f8;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 180px 0 120px; /* Expanded vertical padding */
    position: relative;
    background-image: url('back.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for better text visibility */
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the text */
    text-align: center; /* Center text alignment */
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto; /* Center the content block */
}

.header-content h1 {
    font-size: 4.5rem; /* Larger font size */
    font-weight: 700;
    margin-bottom: 25px; /* Increased spacing */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px; /* Slight letter spacing for elegance */
}

.header-content h2 {
    font-size: 2rem; /* Larger subtitle */
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 140px 0 80px; /* Slightly less padding on mobile */
    }
    
    .header-content h1 {
        font-size: 3rem;
    }
    
    .header-content h2 {
        font-size: 1.5rem;
    }
}
/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}


.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-text h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.bio-intro {
    margin-bottom: 30px;
}

.bio-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 500;
    color: #333;
}

.bio-sections {
    display: grid;
    gap: 35px;
}

.bio-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.bio-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.bio-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.bio-section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.skills-list {
    list-style-type: none;
    padding-left: 5px;
}

.skills-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    font-size: 1rem;
}

.skills-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.about-image {
    flex: 0 0 350px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 100%;
        position: static;
        margin-bottom: 40px;
        order: -1; /* Move image above text on smaller screens */
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bio-section {
        padding: 20px;
    }
    
    .bio-intro p {
        font-size: 1.1rem;
    }
    
    .bio-section h3 {
        font-size: 1.3rem;
    }
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Portfolio Sections */
.portfolio {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

/* Image Portfolio */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 3/4;
}

.image-item:hover {
    transform: translateY(-5px);
}

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

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transition: opacity 0.3s ease;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-info {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 100%;
        margin-top: 30px;
        order: -1; /* Move image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Behind the Scenes Gallery */
.bts-gallery {
    background-color: var(--secondary-color);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.section-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: -20px 0 40px;
    color: #666;
}

.bts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.bts-grid.loading {
    opacity: 0.6;
}

.bts-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 1/1;
    cursor: pointer;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

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

.bts-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 1;
}

.bts-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    backface-visibility: hidden;
}

.bts-item:hover img {
    transform: scale(1.08);
}

.bts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.bts-item:hover .bts-overlay {
    opacity: 1;
}

/* Hide the title/text in overlay */
.bts-overlay h3 {
    display: none;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: 30px 0;
    display: none;
}

.loading-container.active {
    display: block;
}

.loading-bar {
    width: 100px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: var(--accent-color);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% { left: -30%; }
    100% { left: 100%; }
}

.loading-container p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.load-more-btn:hover::after {
    left: 100%;
}

/* Lightbox */
.bts-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 1000;
    padding: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bts-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bts-lightbox.active .lightbox-content img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 30px;
    font-size: 1rem;
    max-width: 80%;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.nav-btn {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    right: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .bts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .bts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 3px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .bts-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 2px;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .lightbox-nav {
        bottom: -40px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
}