body {
    background-image: url("images/thefool.JPG");
    background-size: 20%;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;

    color: white;
    font-family: "Courier New", monospace;
    line-height: 1.6;
    text-align: center;

    margin: 0;
    padding: 0;
    padding-right: 300px;
}

body::after {
    content: '';
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: #003D39; /* Your chosen color */
    z-index: -1;
}

/* Main title */
h1 {
    color: #003D39;
    border: 9px double #003D39;
    border-radius: 10px;
    background-color: white;

    width: fit-content;
    font-size: 64px;
    text-align: center;

    margin: 30px auto;
    padding: 15px 30px;
    
    /* Entrance animation - slide down fade */
    animation: slideDownFade 2s ease-out, gentleFloat 3s ease-in-out 0.8s infinite;
    
    /* Hover effects */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Slide down fade entrance */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gentle floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Glow effect on hover */
h1:hover {
    box-shadow: 0 0 20px rgba(0, 61, 57, 0.6), 4px 4px grey;
    transform: scale(1.05);
    border-color: lightblue;
    color: lightblue;
}

/* About me text container */
.about-box {
    width: 70%;
    max-height: 400px;

    overflow-y: auto;

    margin: 30px auto;
    padding: 20px;

    background: #003D39;

    border: 4px double #003D39;
    border-radius: 15px;

    text-align: left;

    box-shadow: 4px 4px grey;
}

/* Subtitle */
h2 {
    width: fit-content;
    font-size: 30px;
    text-align: center;

    margin: 20px auto;
    padding: 10px 20px;

    background-color: white;
    border-radius: 10px;
}

/* Aboutme carousel */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
}

/* Hide ugly scrollbar (optional) */
.carousel::-webkit-scrollbar {
    height: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #003D39;
    border-radius: 10px;
}

.carousel img {
    height: 450px;
    border-radius: 10px;
    flex-shrink: 0;

    border: 4px solid white;
    box-shadow: 4px 4px grey;

    transition: transform 0.3s ease;
    cursor: pointer;
}

.carousel img:hover {
    transform: scale(1.05);
}
/*cursor*/  
body, a, button, input, textarea {
    cursor: url("images/paintbrush.png") 8 8, auto;
}

/* PAGE LAYOUT */


/* MAIN PAGE LAYOUT */
body {
    display: flex;
    flex-direction: column;
}

.about-layout {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
     margin-right: 300px;
}

/* LEFT SIDE */
.about-content {
    flex: 1;
    min-width: 0;
}

/* RIGHT SIDEBAR */
.about-sidebar {
    width: 260px;
    position: sticky;
    right: 20px;
    top: 20px;
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    flex-shrink: 0;
}
/* SIDEBAR BOXES */
.sidebar-box {
    background: rgba(255,255,255,0.8);
    border: 4px solid white;
    padding: 15px;
    border-radius: 12px;

    box-shadow: 4px 4px grey;

    font-family: "Courier New", monospace;
    
     /* Animation */
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
    
    /* Hover effects */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Stagger animation for each sidebar box */
.sidebar-box:nth-child(1) {
    animation-delay: 0.5s;
}

.sidebar-box:nth-child(2) {
    animation-delay: 1.0s;
}

.sidebar-box:nth-child(3) {
    animation-delay: 1.5s;
}

/* Hover effects */
.sidebar-box:hover {
    transform: translateX(-10px) scale(1.05);
    background: rgba(255,255,255,0.95);
    box-shadow: 8px 8px grey;
    border-color: lightblue;
}

/* Keyframe animation for entrance */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* HEADINGS */
.sidebar-box h2 {
    color: lightblue;
    text-align: center;
    margin-bottom: 10px;

    font-size: 22px;
    text-shadow: 1px 1px grey;
     transition: all 0.3s ease;
}

.sidebar-box:hover h2 {
    color: #003D39;
    text-shadow: 2px 2px lightblue;
    font-size: 24px;
}

/* TEXT */
.sidebar-box p,
.sidebar-box li {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.sidebar-box:hover p,
.sidebar-box:hover li {
    color: #003D39;
    font-weight: bold;
}

/* REMOVE BULLET INDENT */
.sidebar-box ul {
    padding-left: 18px;
}
