/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap'); 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    transition: all 0.3s ease-in-out;
    touch-action: manipulation; /* Scroll + Touch সহজ করবে */
}

/* Body Styling */
body {
    background-color: #111;
    color: white;
    text-align: center;
    transition: background 0.5s ease;
}

/* Rotating Color Selector */
.color-selector {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 20px;
    left: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, red, green);
    animation: rotate 3s linear infinite;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.color-selector:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Menu Button */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: green;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
}

/* Navigation Menu */
.menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 20px;
    background: #222;
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
}

.menu ul {
    list-style: none;
}

.menu ul li {
    padding: 10px;
}

.menu ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: #00ff00;
}

.profile {
    margin-top: 80px;
    padding: 20px;
    text-align: center;
    overflow: visible !important;
    max-width: 100%;
}

.profile-image img {
    width: 170px !important;
    height: 170px !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 50%;
    border: 10px solid transparent;
    animation: rotateBorder 3s linear infinite;
    margin-top: -20px; /* Adjust this value to move the image up */
}

@keyframes rotateBorder {
    0% { border-color: red green; }
    50% { border-color: green red; }
    100% { border-color: red green; }
}

/* Animated Typing Text */
#typing-effect {
    color: green;
    font-size: 24px;
}

/* Download Button */
.download-btn {
    background: green;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s ease;
}
.download-btn:hover {
    background: darkgreen;
    transform: scale(1.05);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icons i {
    font-size: 24px;
    margin: 10px;
    cursor: pointer;
    color: green;
    transition: transform 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.2);
}

/* About Section */
#what-i-do {
    text-align: center;
    padding: 50px 20px;
    position: relative;
}

/* Perfectly Positioned Full-Width Image */
.about-image {
    display: block;
    margin: 20px auto 0 auto; /* Image Centering */
    width: 90%; /* Almost Full Mobile Width */
    max-width: 400px; /* Limit for Larger Screens */
    height: auto;
    border-radius: 10px; /* Slightly Rounded Corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Soft Shadow for Depth */
}

/* Services Section */
#services {
    margin-top: 50px;
}
.service-box {
    background: #222;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
}

/* Education Section */
.education-box {
    background: #222;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
}

/* Music Section */
iframe {
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
}

/* Books Section */
#books {
    text-align: center;
    padding: 50px 20px;
}

.book-box {
    background: #222;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
    text-align: center;
    max-width: 350px; /* Box Width Set */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Content Centered */
    min-height: 400px; /* Ensure Proper Box Height */
}

/* Image Styling */
.book-box img {
    width: 100%;
    max-width: 200px; /* Properly Sized */
    height: auto;
    display: block;
    border-radius: 5px;
    margin-bottom: 15px; /* Space Below Image */
}

/* Paragraph Styling */
.book-box p {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    padding: 0 15px;
}

/* View Book Button */
.book-btn {
    background: #E97451; /* Burnt Sienna */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
    text-align: center;
    margin-top: auto; /* Ensures Proper Positioning */
}

.book-btn:hover {
    background: #d16246; /* Darker Shade */
}

/* Contact Section */
.contact-box {
    background: #222;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
}

/* Message Form */
form input, form textarea {
    width: 80%;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #333;
    color: white;
}
form input:focus, form textarea:focus {
    outline: 2px solid green;
}
form button {
    background: green;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}
form button:hover {
    background: darkgreen;
    transform: scale(1.05);
}

/* Green Text */
.green-text {
    color: green;
    font-weight: bold;
}

/* Box */
.box {
    width: 300px;
    padding: 20px;
    background: #222;
    color: white;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.8;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
}
.box:active {
    transform: scale(1.05);
    opacity: 1;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    .profile-info h1 {
        font-size: 1.5em;
    }
    .menu-button {
        font-size: 20px;
    }
    .download-btn, form button {
        font-size: 14px;
        padding: 8px 16px;
    }
}


/* 3D Hover Effect */
.service-box, .education-box, .organisations-box, .contact-box, .book-box {
    background: #222;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d; /* Enable 3D effect */
}

.service-box:hover, .education-box:hover, .organisations-box:hover, .contact-box:hover, .book-box:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.5);
}

/* Organizations Box */
.organisations-box {
    background: #222;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 255, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d; /* Enable 3D effect */
}

.organisations-box:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.5);
}
