/* Global Dark Theme */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    padding-top: 20px;
}

/* Navbar */
.navbar {
    background: rgba(20, 20, 20, 0.95);
    padding: 15px 0;
    margin-bottom: 60px;
}
.navbar a {
    color: #e0e0e0;
}
.navbar a:hover {
    color: #ffc107;
}

.navbar .nav-link.active {
    color: #ffc107 !important;
    font-weight: bold;
}

.navbar .nav-link.contact-link {
    margin-left: 15px;
    background: #ffc107;
    color: #121212 !important;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s ease-in-out;
}
.navbar .nav-link.contact-link:hover {
    background: #ffb300;
}

.navbar-toggler {
    border: none !important;
    outline: none !important;
}

.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(224,224,224,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Footer */
.footer {
    background: #111;
    padding: 20px;
    color: #bbb;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Hero Section (Refined About Me) */
.about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50vh;
    background: url("../img/bg.ef4fa08a964a.jpg") no-repeat center center/cover;
    background-size: cover;
    color: #fff;
    position: relative;
    padding: 40px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.05);
}

/* Overlay Effect */
.about-me::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
}

/* Frosted Glass Text Box */
.about-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Stylish Text */
.about-me h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-me p {
    font-size: 1.4rem;
    opacity: 0.8;
}

/* Instagram Section */
.instagram-section {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.instagram-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.instagram-item {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.instagram-item blockquote {
    width: 100% !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .instagram-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .instagram-item {
        max-width: 100%;
    }
}

/* Responsive Gallery Grid */
.gallery-container {
    max-width: 90%;
    margin: auto;
    padding: 50px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-me h1 {
        font-size: 2rem;
    }
    .about-me p {
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #181818;
        padding: 10px;
        border-radius: 8px;
    }
    .navbar-nav .nav-link {
        color: #fff !important;
    }
    .navbar-nav .nav-link:hover {
        color: #ffc107 !important;
    }
}

/* Alert effects */
.alert-container {
    margin-bottom: 20px;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
