/* Sidebar styles */
.sidebar {
    height: 100vh;
    width: 0; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #EDF4F2;
    overflow-x: hidden;
    transition: width 0.3s ease;
    padding-top: 70px; /* Space for content */
    z-index: 1000; /* Ensure it stays below the toggle button */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.sidebar a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #31473A;
    display: block;
    transition: background-color 0.3s;
    margin-top: 10%;
    font-weight:bold ;
}

.sidebar a:hover {
    background-color: #A7BEAE;
    color: black;
}

/* Navbar and toggle button */
.navbar {
    background-color: #31473A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1500; /* Ensure it stays above the sidebar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar i {
    cursor: pointer;
    font-size: 24px;
}

.navbar .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 40px; /* Adjust the value as needed for the desired space */
}


/* Content styles */
.content {
    margin-left: 0;
    padding: 80px 20px;
    transition: margin-left 0.3s ease;
}

/* Responsive Sidebar - Push Content */
@media (max-width: 768px) {
    .content {
        padding: 70px 10px;
    }
}






/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #2A3132;
}





.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    
}


/* Skills Section */
.skills-container {
    background-color: #2A3132;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 10%;
    margin-top: 5%;
}

.skills-container h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #EDF4F2;
}

.skill {
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.skill-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.skill-bar {
    background-color: #31473A;
    border-radius: 20px;
    overflow: hidden;
    height: 20px;
    position: relative;
}

.skill-bar-inner {
    height: 100%;
    background-color: #A7BEAE;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-bar[data-percentage]:after {
    content: attr(data-percentage) "%";
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 14px;
    color: white;
}

/* Footer styles */
.footer {
    background-color: #31473A;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .text-section, .image-section {
        text-align: center;
    }
}





/* Skills Section Styles */
.skills-container-alt {
    background-color: #2A3132;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.skills-container-alt h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #EDF4F2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.skill-card {
    background-color: #31473A;
    color: #EDF4F2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.skill-card i {
    font-size: 48px;
    color: #A7BEAE;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 24px;
    margin: 10px 0;
}

.skill-card p {
    font-size: 16px;
    line-height: 1.5;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}



/* Text Section */
.text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
    padding: 0 10px;
    color: white;
    font-family: 'Arial', sans-serif;
    text-align: center;
    word-wrap: break-word; /* Ensure long words break on smaller screens */
}

/* Text Animation */
.text-animation h1, 
.text-animation h2 {
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Slide effect */
    animation: fadeIn 1s ease-in-out forwards;
}

.text-animation h2 {
    animation-delay: 1.5s; /* H2 appears after H1 */
    font-size: 20px;
    color: white;
}

/* Fade-in Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .text-animation h1 {
        font-size: 24px;
    }
    .text-animation h2 {
        font-size: 18px;
    }
}










.animated-text {
    font-size: 35px; /* Default font size */
    font-weight: 600;
    min-width: 280px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center; /* Center-align the text */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Truncate overflow with ellipsis */
}

.animated-text span {
    color: #ff7f50;
    white-space: nowrap; /* Prevent wrapping for the animated text */
    overflow: hidden; /* Ensure long text is hidden */
    display: inline-block;
    border-right: 2px solid #ff7f50;
    animation: blink-caret 0.8s step-end infinite;
    margin-left: 8px; /* Space between "I'm" and dynamic text */
    text-overflow: ellipsis;
    max-width: 100%; /* Limit text to container's width */
    font-size: inherit; /* Keep the font size consistent */
    transition: transform 0.3s ease; /* Smooth shrinking effect */
}

/* Adjust text size only when it overflows */
.animated-text span {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    transform: scale(calc(min(1, 100% / max-content-width)));
}

/* Blinking caret effect */
@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}










        /* Projects Section */
        .projects-container {
            margin: 20% 10%;
        }

        .project-section {
            margin: 10% 0;
            padding: 20px;
            border-radius: 15px;
            position: relative;
            overflow: hidden;
            background-color: #2a2a2a; /* Solid background color */
            border: 5px solid; /* For the RGB border */
            animation: rgb-border 5s infinite; /* Continuous RGB effect */
        }
        
        #project2 {
            margin: 20% 0;
            padding: 20px;
            border-radius: 15px;
            position: relative;
            overflow: hidden;
            background-color: #2a2a2a; /* Solid background color */
            border: 5px solid; /* For the RGB border */
            animation: rgb-border 10s infinite; /* Continuous RGB effect */
        }
        
        
        
        

        /* RGB Border Animation */
        @keyframes rgb-border {
            0% { border-color: red; }
            25% { border-color: yellow; }
            50% { border-color: green; }
            75% { border-color: blue; }
            100% { border-color: red; }
        }

        /* Project Image */
        .project-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            margin: 20px auto;
            display: block;
            object-fit: cover; /* Ensures the image fits inside the circle */
        }

        /* Project Title */
        .project-title {
            text-align: center;
            font-size: 24px;
            color: #ff7f50;
            margin-top: 10px;
        }

.titlep{
  text-align: center;
            font-size:50px;
            color: white;
            margin-top: 10%;
}


        /* Project Description */
        .project-description {
            text-align: center;
            color: #ddd;
            margin: 10px 0;
        }

        /* Visit Project Button */
        .visit-button {
            display: block;
            width: 200px;
            margin: 0 auto;
            text-align: center;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: bold;
            background-color: #ff7f50;
            color: white;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

        .visit-button:hover {
            background-color: #0056b3;
        }

    










.contact-page {
    padding: 50px 30px;
    padding-right: 50px;
    max-width: 1200px;
    margin-top:10%;
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
    background-color: #31473A;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-page h1 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.contact-page p {
    font-size: 18px;
    color: white;
    margin-bottom: 30px;
}

.contact-form {
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 16px;
    color: white;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form button {
    background-color: #ff7f50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #ff7f50;
}

.location h2 {
    font-size: 28px;
    color: #ff7f50;
    margin-bottom: 20px;
    text-align: center;
    
    
    
}



.map-placeholder {
    width: 90%; /* Adjust width to fit within the page */
    max-width: 600px; /* Optional: Limit max width */
    margin: 0 auto; /* Center the div horizontally */
    padding: 15px;
    background-color: #31473A;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    color: white;
    text-align: left;
    gap: 10px; /* Adjust space between items */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.contact-item i {
    font-size: 20px; /* Adjust icon size */
    color: white;
}



.contact-item i {
    font-size: 20px; /* Adjust icon size */
    color: white;
}



.location{
  margin-bottom: 60px;
}


//////* graphics *//////

  .header {
            background-color: #007BFF;
            padding: 10px 20px;
            text-align: center;
            color: white;
        }

        .header h1 {
            margin: 0;
            font-size: 2.5em;
        }



        /* Portfolio container */
        .portfolio-container {
            max-width: 1200px;
            margin: 80px auto;
            padding: 10px;
            
        }

        .portfolio-container h2 {
            text-align: center;
            color: white;
            margin-top: 5%;
            margin-bottom: 20px;
            font-size: 30px;
        }
        

        

        /* Gallery grid */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            
        }

        .gallery img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .gallery img:hover {
            transform: scale(1.05);
            cursor: pointer;
        }

        
        .portfolio-containerdnt {
            margin: 40px auto;
            text-align: center;
            padding: 30px;
            max-width: 800px;
        }
        .portfolio-containerdnt h2 {
            font-size: 24px;
            color: white;
            margin-top: 40px;
        }

        /* Donation Section */
        .donatesec {
            margin: 40px auto;
            padding: 10px;
            max-width: 800px;
            background-color: #f9f9f9;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 80px;
        }
        .donatesec h2 {
            margin-bottom: 20px;
            font-size: 24px;
            color: #333;
        }
        .donatesec img {
            width: 350px;
            height: 170px;
            border-radius: 8px;
            margin: 10px;
        }
   
   .pal {
            width: 200px;
            height: 100px;
            border-radius: 8px;
            margin: 10px;
        }
        
      
        .donatesec a {
            display: inline-block;
            padding: 12px 24px;
            background-color: green;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
            margin-top: 20px;
            font-weight: bold;
        }
        .donatesec a:hover {
            background-color: #0056b3;
        }