/* Importing a smooth font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
    outline: none;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;            
    background: linear-gradient(to bottom, rgba(12, 10, 110, 0.3), rgba(121, 10, 10, 0.3)), url("./img/bg.png") no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #F8F6E7;
    overflow-x: hidden;
}

body.blurred .container{
    filter: blur(15px);
    transition: filter 0.3s ease-in-out;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97); /* Semi-transparent overlay */
    z-index: 998; /* Below the sidebar but above blurred content */
}

.overlay.show {
    display: block;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    animation: fadeIn 2s ease-in-out;
    z-index: 1;
}

.container h1 {
    font-family: 'Poppins', sans-serif;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.profile-card {
    background: linear-gradient(to bottom, rgba(12, 10, 110, 0.2), rgba(121, 10, 10, 0.2));
    text-align: center;
    padding: 40px;
    margin: 0 10px;
    border-radius: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    transform: translateY(100px);
    animation: slideUp 1s ease-in-out forwards;
    color: #86031E;
}

@keyframes slideUp {
    0% { transform: translateY(100px); }
    100% { transform: translateY(0); }
}

.profile-image {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInImage 1.5s ease-in-out forwards, pulse 2s infinite;
    animation-delay: 0.5s;
}

@keyframes fadeInImage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.name {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInText 1.8s ease-in-out forwards;
    animation-delay: 0.8s;
}

.title {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInText 2s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes fadeInText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.contact-icons {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInIcons 2.2s ease-in-out forwards;
    animation-delay: 1.2s;
}

.icon {
    text-decoration: none;
    margin: 0 15px;
    transition: transform 0.3s ease-in-out;
}

.icon img {
    width: 30px;
    filter: none;
}

.icon:hover {
    transform: scale(1.2);
}

.social-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    animation: fadeInLinks 2.5s ease-in-out forwards;
    animation-delay: 1.5s;
}

.social-links li {
    margin: 12px 0;
}

.social-links a {
    text-decoration: none;
    background: linear-gradient(45deg, rgba(35, 8, 89, 0.6), rgba(225, 48, 108, 0.6));
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 25px;
    border: none;
    outline: none;
    border-radius: 4px;
    display: block;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-links a:hover {
    background: linear-gradient(45deg, rgba(35, 8, 89, 0.8), rgba(225, 48, 108, 0.8));
    color: #fff;
    border: none;
    outline: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-7px);
}

@keyframes fadeInIcons {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInLinks {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .profile-card {
        padding: 25px 15px;
        max-width: 300px;
    }

    .social-links a {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        max-width: 90%;
    }

    .profile-card {
        padding: 20px 10px;
        max-width: 90%;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .social-links a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .icon img {
        width: 25px;
    }

    .popup-content {
        width: 75% !important;
    }
}


/* Pop-up Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
}

.popup-content {
    background-color: #FFFFFF;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #86031E;
    position: relative;
    max-width: 500px;
    width: 80%;
}

.popup-content h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #86031E;
}

.popup-content p {
    font-size: 18px;
    color: #333333;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #86031E;
    cursor: pointer;
}

.close-btn:hover {
    color: #5A0212;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

 /* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 15px;
    left: 5px;
    padding-left: 10px;
    z-index: 1001;
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Side Navigation Menu */
.side-nav {
    position: fixed;
    top: 0;
    left: -270px; /* Initially hidden off-screen */
    width: 270px;
    height: 95%;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);;
    /* background: linear-gradient(to bottom,  rgba(121, 10, 10, 1), rgba(12, 10, 110, 1)); */
    background: linear-gradient(to bottom, rgba(12, 10, 110, 0.2), rgba(121, 10, 10, 0.2));
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Align footer at the bottom */
}

.side-nav.show {
    right: 0; /* Slide in */
}

/* Navigation Links Styles */
.side-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.side-nav ul li {
    margin: 20px 30px;
}

.side-nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.side-nav ul li a:hover {
    color: #FFD700;
}

/* Footer Inside Navigation */
.side-nav-footer {
    padding: 20px;
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 30px;
}

.side-nav-footer .footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.side-nav-footer .footer-link:hover {
    color: #f4c99f;
}

/* Toggle Side Navigation Menu */
.side-nav.show {
    left: 0;
}

/* Hamburger Menu Animation When Active */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(20px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-20px);
}
