/* ✨ Global Styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1E1E2F, #2E3B55);
    color: white;
}

/* ✨ Dark Mode Header */
header {
    background: rgba(0.5, 0, 0.5, 0); /* Dark semi-transparent background */
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative; /* Added so the button can be positioned inside the header */
    margin-top: 30px;
}

/* ✨ Navigation */
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #FFD700; /* Gold Effect */
}

/* ✨ Section Styles */
section {
    padding: 40px;
    margin: 30px auto;
    width: 80%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

section:hover {
    transform: scale(1.02);
}

/* ============================ */
/* 🔥 1. Fancy Top Skills Section */
/* ============================ */

/* 🔥 Skills Section Title */
.skills-section h2 {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #FFD700; /* Golden Yellow */
    text-shadow: 3px 3px 12px rgba(255, 215, 0, 0.8); /* Stronger Glow */
    letter-spacing: 1px;
}

/* 💎 Skills Grid */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* 🎨 Fancy Skill Cards */
.skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07)); /* Light gradient */
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(255, 215, 0, 0.4); /* Soft golden glow */
    padding: 20px;
    text-align: center;
    width: 180px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 215, 0, 0.4); /* Subtle border */
    font-size: 50px;
}

/* 🔤 Skill Titles */
.skill-card h3 {
    font-size: 14px; /* Slightly smaller text */
    font-weight: bold;
    color: #FFD700; /* Golden Yellow */
    text-shadow: 3px 3px 12px rgba(255, 215, 0, 0.8); /* Stronger Glow */
    margin-top: 10px;
}

/* 🌟 Skill Icons */
.skill-card i {
    font-size: 48px; /* Keep icons large */
    color: #FFD700; /* Golden Yellow */
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* ✨ Hover Effect */
.skill-card:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.8); /* Very light background */
}

/* 🟡 Add Glow and Scale on Hover */
.skill-card:hover i {
    transform: scale(1.3);
    color: #111111; /* Very dark black */
}

/* 🟡 Darker Text on Hover */
.skill-card:hover h3 {
    transform: scale(1.1);
    color: #111111; /* Very dark black */
}

/* 📱 Responsive Tweaks */
@media (max-width: 768px) {
    .skills-container {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .skill-card {
        width: 75%; /* Adjust width on mobile */
        font-size: 40px;
    }

    .skill-card h3 {
        font-size: 16px; /* Bigger text for readability */
    }
}

/* ============================ */
/* 🔥 2. Interactive Timeline */
/* ============================ */

.timeline-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.timeline-item {
    flex: 0 0 auto;
    width: 320px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

/* ============================ */
/* 🔥 3. Animated Projects Section */
/* ============================ */

/* 📂 Projects Section */
.projects-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 2-column grid */
    gap: 20px;
    padding: 20px;
    justify-items: center; /* Centers the grid items */
}

/* 🎨 Project Card Styling */
.project-card {
    background: rgba(255, 255, 255, 0.15); /* Light glass effect */
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(255, 215, 0, 0.3);
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 500px; /* Ensure cards don’t get too wide */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ✨ Hover Effect */
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 20px rgba(255, 215, 0, 0.5);
}

/* 🖼 Video Placeholder Styling */
.video-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* 🎬 Buttons */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

/* 📱 Responsive for Mobile (1 Column) */
@media (max-width: 768px) {
    .projects-section {
        grid-template-columns: 1fr; /* Only 1 project per row on small screens */
    }
}

/* ============================ */
/* 🔥 4. Fun Click & Reveal Game */
/* ============================ */

.game-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.box {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    backdrop-filter: blur(10px);
}

.box:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.5);
}

/* ============================ */
/* 🔥 5. Interactive Buttons */
/* ============================ */

.btn {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.profile-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    width: 300px;
    margin: 20px auto;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-card h2 {
    margin-top: 10px;
    font-size: 20px;
    color: white;
}

.profile-card p {
    font-size: 14px;
    color: #ddd;
}

.video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

video {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* 📚 Education Section */
.education-section {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
}

/* 🏫 Education Card */
.education-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

/* 📜 Certification Cards */
.cert-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(255, 215, 0, 0.3);
    margin: 10px auto;
    width: 80%;
    text-align: center;
}

/* 🎓 Section Titles */
h2, h3 {
    color: #FFD700; /* Gold */
    text-shadow: 2px 2px 5px rgba(255, 215, 0, 0.5);
}

/* 📄 Certificate Button */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

/* 🏗️ Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px; /* Push sidebar below header */
    height: calc(100% - 60px); /* Adjust height */
    width: 250px;
    background: linear-gradient(135deg, #1E1E2F, #2E3B55);
    padding: 20px;
    text-align: center;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* 📋 Sidebar Links */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    display: block;
    color: #FFD700; /* Gold */
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.sidebar ul li a:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* 🚀 Push Main Content to Right */
main {
    margin-left: 270px; /* Adjust according to sidebar width */
    padding: 20px;
}

/* 📱 Responsive Sidebar (for mobile) */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 10px;
        top: 0px; /* Align properly on mobile */
    }

    .sidebar ul li a {
        font-size: 14px;
        padding: 8px;
    }

    main {
        margin-left: 80px;
    }
}

/* Style for the MENU button inside the header */
.menu-btn {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    position: absolute; /* Position it absolutely inside the header */
    left: 20px; /* Adjust the left position of the button */
    top: 50%; /* Vertically center it in the header */
    transform: translateY(-50%); /* Adjust the position to center vertically */
}

.menu-btn:hover {
    background-color: transparent;
}

/* Style for the dropdown menu */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50px; /* Adjust top position */
    left: 10px; /* Adjust left position */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 1000; /* Ensure it is above other content */
}

.dropdown-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu ul li {
    border-bottom: 1px solid #ddd;
}

.dropdown-menu ul li:last-child {
    border-bottom: none;
}

.dropdown-menu ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu ul li a:hover {
    background-color: #f1f1f1;
}

/* Make the profile sticky at the top */
.sticky-profile {
    position: sticky;
    top: 0;
    z-index: 20;  /* Make sure it stays on top of other content */
    padding: 20px;
}
