/* ========================================
   COMMON STYLES - Shared across all pages
   ======================================== */

/* Universal styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body - Dark theme with grid background */
body {
    background-color: #111;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding-left: 260px;
    position: relative;
}

/* ========================================
   HAMBURGER MENU (Mobile)
   ======================================== */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    width: 30px;
    height: 22px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: orange;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation when active */
aside.active + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

aside.active + .hamburger span:nth-child(2) {
    opacity: 0;
}

aside.active + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   SIDEBAR (Desktop)
   ======================================== */
aside {
    width: 240px;
    height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: left 0.3s ease;
}

.logo {
    margin-bottom: 2rem;
}

.logo img {
    width: 50px;
    height: auto;
}

nav ul {
    list-style: none;
    width: 100%;
}

nav ul li {
    margin: 1rem 0;
}

nav ul li a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.2rem 0;
    transition: color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    color: orange;
    background: none;
}

nav hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    width: 100%;
}

.socials {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.socials a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: orange;
}

/* ========================================
   COMMON ANIMATIONS
   ======================================== */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   COMMON BUTTON STYLES
   ======================================== */
.back-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.6rem 1.2rem;
    background-color: orange;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.back-text {
    margin-left: 0;
    transition: margin-left 0.3s;
}

.back-btn:hover {
    background-color: #eaa31f;
}

.back-btn:hover .back-text {
    margin-left: 6px;
}

/* ========================================
   MOBILE RESPONSIVE (Common)
   ======================================== */
@media (max-width: 768px) {
    body {
        padding-left: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
        z-index: 1101;
    }

    /* Glassmorphism Sidebar for Mobile */
    aside {
        left: -260px;
        height: 100%;
        width: 240px;
        position: fixed;
        top: 0;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem;

        /* Glassmorphism effect */
        background: rgba(26, 26, 26, 0.4);
        backdrop-filter: blur(12px) saturate(150%);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 30px rgba(48, 48, 48, 0.15);

        transition: left 0.4s ease-in-out, backdrop-filter 0.3s ease-in-out;
    }

    /* When active â€“ slide in */
    aside.active {
        left: 0;
        background: rgba(26, 26, 26, 0.55);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
    }
}