:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --text-primary: #1a2b3c;
    --text-secondary: #4a5568;
    --accent-primary: #007bff;
    --accent-secondary: #00ffe1;
    --gradient-primary: linear-gradient(135deg, #00ffe1 0%, #007bff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #e94560 100%);
    --shadow-subtle: rgba(15, 52, 96, 0.1);
    --shadow-medium: rgba(15, 52, 96, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: auto; /* Allow height to adjust based on content */
    overflow: auto; /* Enable scrolling */
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* Gradient background */
    background-size: 400% 400%; /* For animation effect */
    animation: gradientAnimation 15s ease infinite; /* Animation effect */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-container {
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px); /* Optional: add a glass effect */
    border-radius: 15px; /* Optional: round corners */
    padding: 20px; /* Add some padding */
    /* Add other styles as needed */
}

.page-wrapper {
    display: flex;
    justify-content: center; /* Center the content */
    align-items: flex-start; /* Align items to the top */
    padding: 20px; /* Add some padding */
    box-sizing: border-box; /* Include padding in width calculations */
}

.glass-container {
    background-color: rgba(255, 255, 255, 0.9); /* White background with slight transparency */
    border-radius: 15px; /* Round corners */
    padding: 20px; /* Add padding */
    width: 100%; /* Full width */
    max-width: 800px; /* Max width for larger screens */
    margin: 0 auto; /* Center the container */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px); /* Optional: add a glass effect */
}

.profile-section {
    text-align: center; /* Center text */
}

.profile-picture-frame {
    width: 150px;
    height: 150px;
    border: 5px solid #000;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Center the frame */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition effects */
    background: linear-gradient(135deg, #f06, #ffba00); /* Add a gradient background */
}

.profile-picture-frame:hover {
    transform: scale(1.05); /* Scale up on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
}

.profile-picture-frame img {
    width: 100%;
    height: auto;
}

.profile-image-container {
    width: 100%; /* Full width */
    max-width: 150px; /* Limit image size */
    margin: 0 auto; /* Center image */
}

.profile-image {
    width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column; /* Stack header elements on small screens */
    }

    .action-grid {
        flex-direction: column; /* Stack action cards vertically on small screens */
    }

    .action-card {
        width: 100%; /* Full width for action cards */
        margin: 10px 0; /* Spacing between cards */
    }
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
}

.profile-info {
    text-align: center; /* Center text */
    margin-left: 20px;
}

.submenu {
    display: none; /* Hide by default */
}

.submenu.d-block {
    display: block; /* Show when d-block class is added */
}

.name {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text; /* Standard property for modern browsers */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.quick-actions {
    margin-bottom: 2rem;
}

.action-grid {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

.action-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    text-decoration: none;
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px var(--shadow-subtle);
    width: 100%; /* Use a full width */
    max-width: 600px; /* Keep the max-width for larger screens */
    margin: 10px 0;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.action-card.portfolio .action-icon { background: linear-gradient(135deg, #00ffe1 0%, #007bff 100%); color: white; }
.action-card.blog .action-icon { background: linear-gradient(135deg, #ff6b6b 0%, #e94560 100%); color: white; }
.action-card.github .action-icon { background: linear-gradient(135deg, #333 0%, #666 100%); color: white; }
.action-card.linkedin .action-icon { background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%); color: white; }
.action-card.about .action-icon {
    background: linear-gradient(135deg, #00c3ff 0%, #000dff 100%);
    color: white;
}

.action-card.services .action-icon {
    background: linear-gradient(135deg, #ff99cc 0%, #ff66b3 100%); /* Gradient color */
    padding: 10px; /* Spacing around the icon */
    color: white; /* Icon color */
}

.action-content {
    flex-grow: 1;
}

.action-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.action-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.action-hover {
    position: absolute;
    right: 1rem;
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.action-card:hover .action-hover {
    opacity: 1;
    transform: translateX(0);
}

.cta-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.primary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(233, 69, 96, 0.2);
}

.primary-cta:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3);
}

.primary-cta span {
    margin-right: 0.5rem;
}

.social-connections {
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.social-icon.twitter:hover { color: #1DA1F2; }
.social-icon.instagram:hover { color: #E1306C; }
.social-icon.youtube:hover { color: #FF0000; }

.social-icon i {
    font-size: 1.5rem;
}

#link-in-bio-options {
    display: block; /* Ensure this is visible */
    margin-top: 20px; /* Add some spacing above */
    padding: 10px; /* Add padding for better aesthetics */
    border: 1px solid #ccc; /* Optional border for definition */
    border-radius: 5px; /* Rounded corners */
    background-color: rgba(255, 255, 255, 0.9); /* Slightly opaque background */
}

.button-section {
    margin: 20px 0; /* Space between sections */
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: var(--accent-primary); /* Use existing variable */
    color: var(--bg-secondary); /* Use existing variable */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--accent-secondary); /* Change on hover */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: var(--accent-primary);
    color: var(--bg-secondary);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: var(--bg-secondary);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block; /* Show on hover */
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-primary); /* Highlight on hover */
}

.action-card.services {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform transition */
    background-color: rgba(255, 255, 255, 0.9);
}

.action-card.services:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: rise(1.05); /* Slightly scale up on hover */
}

.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the popup */
    width: 90%; /* Responsive width */
    max-width: 600px; /* Max width for larger screens */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-subtle);
    z-index: 1000; /* Ensure it appears above other content */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.popup.show {
    display: flex; /* Show the popup */
    opacity: 1; /* Fully visible */
    transform: translate(-50%, -50%) scale(1.05); /* Scale effect */
}

.popup-content {
    overflow-y: auto; /* Allow scrolling if content is too tall */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    padding: 20px;
    border-radius: 15px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background: linear-gradient(135deg, #f0f4f8, #e0e7ff); /* Soft gradient background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Softer shadow */
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 0.5rem;
    }

    .glass-container {
        padding: 1.5rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        gap: 1rem;
    }
}

.banner-slideshow {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slide {
    display: none; /* Hide all slides by default */
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.slide.active {
    display: block; /* Show the active slide */
    opacity: 1;
}

.slide-content {
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: start; /* Change to 'start' for left alignment */
    position: relative;
}

.shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}