/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgb(0, 0, 32);
    color: #f8f7fb;
}

/* Header Section */
header {
    background-color: #031b5d; 
    padding: 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    width: 150px;
}

header .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

header .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

header .nav-links a:hover {
    color: rgb(77, 77, 219);
}
.left {
    font-size: 3rem; 
    font-weight: bold; 
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 5px 20px; /* Keep the padding to maintain a compact look */
    align-items: center;
    background-color: rgb(0, 0, 32);
}    

.hero-content h1 {
    font-size: 2.5rem; /* Slightly larger heading for more impact */
    color: white;
}

.hero-content h2 {
    font-size: 1.8rem; /* Adjusted size for clarity */
    color: rgb(83, 83, 214);
}

.cta-buttons .btn {
    background-color: rgb(54 54 151);
    color: white;
    padding: 12px 20px;
    margin: 10px;
    border-radius: 6px;
    text-decoration: none;
}

.cta-buttons .btn:hover {
    background-color: rgb(77, 77, 219);
}

/* Developer Image */
.hero-image img {
    width: 500px; /* Larger width to better fit the hero section */
    height: 500px; /* Increased height for better fit */
    border-radius: 10px;
    object-fit: fill; /* Ensures proper image scaling */
    box-shadow: none; /* Removed shadow */
}

/* About Section */
.about {
    padding: 60px 50px;
    text-align: center;
    background-color: #16213E; /* Matching the hero section color */
}


/* About Section */
.about {
    padding: 60px 50px;
    text-align: center;
    background-color: rgb(27, 27, 81);
}

.about h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-image {
    width: 240px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.about p {
    font-size: 1.2rem;
    color: lightgray;
    max-width: 600px;
}

/* Services Section */
.services {
    background-color: rgb(0, 0, 32);
    padding: 60px 50px;
    text-align: center;
}

.services h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.service-boxes {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.service-box {
    background-color: rgb(18, 18, 62);
    border-radius: 10px;
    width: 250px;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.service-box .front, .service-box .back {
    background-color: rgb(18, 18, 62);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    backface-visibility: hidden;
}

.service-box .front {
    transform: rotateY(0deg);
}

.service-box .back {
    transform: rotateY(180deg);
    padding: 20px;
    text-align: center;
}

.service-box:hover .front {
    transform: rotateY(-180deg);
}

.service-box:hover .back {
    transform: rotateY(0deg);
}

/* Projects Section */
.projects {
    background-color: rgb(18, 18, 62);
    padding: 60px 50px;
    text-align: center;
}

.projects h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.project-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-box {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    perspective: 1000px; /* Set up for 3D space */
}

.project-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.project-box:hover .project-content {
    transform: rotateY(180deg); /* Flip the card on hover */
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.project-box:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(50%); /* Darken the image */
}

/* Overlay - Make it expand for full text visibility */
/* Overlay - Make it expand for full text visibility */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
    transform: rotateY(180deg); /* Hide overlay on the front */
    overflow: visible; /* Allow content to grow */
}

.project-box:hover .overlay {
    opacity: 1; /* Show overlay when hovering */
    transform: rotateY(0deg); /* Rotate the overlay to the front */
    height: auto; /* Make the overlay expand to fit content */
}

/* Reduce text size for better fitting */
.overlay h3 {
    font-size: 18px;  /* Smaller title */
    margin-bottom: 8px;
    line-height: 1.4; /* Improved line spacing for better readability */
}

.overlay p {
    font-size: 12px;  /* Smaller description text */
    margin-bottom: 10px;
    line-height: 1.5; /* Increased line height for clarity */
}

.overlay .btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ff5722;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;  /* Smaller button text */
    transition: background 0.3s;
}

.overlay .btn:hover {
    background-color: #e64a19;
}


/* Ensure overlay has proper spacing and visibility */
.project-box:hover .overlay {
    opacity: 1;
    height: auto; /* Expands height dynamically */
    padding: 20px;
}


/* Skills-Certificates Section */
.skills-certificates {
    background-color: rgb(18, 18, 62);
    padding: 60px 50px;
    text-align: center;
}

.skills-certificates h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.skill-certificate-boxes {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.skill-certificate-box {
    background-color: rgb(27, 27, 81);
    border-radius: 10px;
    width: 250px;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    position: relative;
}

.skill-certificate-box .front, 
.skill-certificate-box .back {
    background-color: rgb(18, 18, 62);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    backface-visibility: hidden;
}

.skill-certificate-box .front {
    transform: rotateY(0deg);
}

.skill-certificate-box .back {
    transform: rotateY(180deg);
    padding: 20px;
    text-align: center;
}

.skill-certificate-box:hover .front {
    transform: rotateY(-180deg);
}

.skill-certificate-box:hover .back {
    transform: rotateY(0deg);
}


/* Contact Section */
.contact {
    padding: 10px 10px;
    text-align: center;
    background-color: rgb(0, 0, 32);
}

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

.contact .social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact .social-icons a img {
    width: 40px; /* Adjusted size of the social media icons */
    height: 40px;
    transition: transform 0.3s;
}

.contact .social-icons a:hover img {
    transform: scale(1.1); /* Slight hover effect for scaling */
}

.contact .social-icons a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

.contact .social-icons a:hover {
    color: rgb(77, 77, 219);
}


/* Footer Section */
footer {
    background-color: rgb(18, 18, 62);
    padding: 1px;
    text-align: center;
    color: white;
}

footer p {
    font-size: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        width: 250px;
        height: 350px;
    }

    .about-content {
        flex-direction: column;
    }

    .service-boxes {
        flex-direction: column;
    }

    .project-boxes {
        flex-direction: column;
    }
}
#dynamic-text {
    color: white;
    font-weight: bold; /* Optional, if you want the text to be bold */
}
/* Feedback Section Styles with Blue Theme */
.feedback {
    padding: 20px;
    background-color: rgb(18, 18, 62);  /* Dark blue background */
    color: white;  /* White text for contrast */
    text-align: center;
    margin-top: 50px;
}

.feedback h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #e1e8f0;  /* Lighter blue color for heading */
}

.feedback-form {
    max-width: 400px;  /* Smaller width for the form */
    margin: 0 auto;
    padding: 20px;
    background-color: #16213e;  /* Darker blue background for form */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feedback-form label {
    display: block;
    margin: 10px 0 5px;
    font-size: 16px;
    color: #e1e8f0;  /* Lighter blue for labels */
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #273046;  /* Slightly lighter blue background for input fields */
    color: white;
    border: 1px solid #444c57;  /* Subtle blue-gray border */
    border-radius: 5px;
    font-size: 14px;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #aaaaaa;  /* Light placeholder text */
}

.feedback-form button {
    padding: 10px 20px;
    background-color: #0066cc;  /* Blue button background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.feedback-form button:hover {
    background-color: #004a99;  /* Darker blue on hover */
}
/* Navigation Underline Effect */
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative; 
}

.nav-links a:hover {
    color: rgb(77, 77, 219);
}

/* Underline effect on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgb(77, 77, 219); 
    bottom: -5px; 
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.projects {
    margin-bottom: 0; 
}
.feedback {
    margin-top: 0; 
}


