body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #ffffff;
    color: white;
    padding: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #218838;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}


/* Responsive Styles */
@media screen and (max-width: 768px) {
    header {
        padding: 15px; /* Reduce padding on smaller screens */
    }

    button {
        padding: 8px 15px; /* Reduce button padding */
        font-size: 14px; /* Reduce button font size */
    }
}

/* Navbar Styling */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    color: rgb(0, 0, 0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    /* text-decoration: none; */
}

/* Prevent navbar from overlapping content */
body {
    padding-top: 70px; /* Adjust based on navbar height */
}

/* Logo Styling */
.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    /* text-decoration: none; */
}

.logo a {
    text-decoration: none; /* Ensures no underline */
    color: inherit; /* Keeps the same color as parent */
}

/* Navbar Links */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background-color: rgba(65, 160, 255, 0.2);
    transform: scale(1.1);
}

/* Sticky Navbar Effect */
nav.scrolled {
    background: rgba(241, 248, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Navbar */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Responsive Navbar */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(237, 245, 255, 0.95);
        width: 200px;
        text-align: center;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }
}


/* About Section */
#about {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 80px 50px;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* About Container */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
    text-align: left;
    gap: 100px;
    padding: 50px;
}

/* About Image with Tilt Effect */
.about-img {
    width: 40%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    border: 5px solid #0077b5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover Effect */
.about-img:hover {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* About Text */
.about-text {
    width: 55%;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.about-text p {
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Typing Effect */
.typing-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff0040;
    margin-top: 10px;
}

#typed-text::after {
    content: "|";
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Social Media Icons */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 25px;
}

.social-links a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 24px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Background Colors */
.social-links .linkedin {
    background-color: #0077b5;
    color: white;
}

.social-links .github {
    background-color: #333;
    color: white;
}

.social-links .twitter {
    background-color: #1da1f2;
    color: white;
}

.social-links .telegram {
    background-color: #1877f2;
    color: white;
}

/* Hover Effects */
.social-links a:hover {
    transform: scale(1.2);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.social-links .linkedin:hover {
    background-color: #004471;
}

.social-links .github:hover {
    background-color: #555;
}

.social-links .twitter:hover {
    background-color: #0d8ddc;
}

.social-links .telegram:hover {
    background-color: #0e5aaf;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }

    .about-img {
        width: 80%;
        transform: rotate(0deg);
        margin-bottom: 20px;
    }

    .about-text {
        width: 100%;
        padding: 10px;
    }

    .about-text p {
        width: 100%;
        text-align: justify;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    #about {
        padding: 50px 20px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-text p {
        font-size: 16px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}


/* EDU Section */
#education {
    background: linear-gradient(135deg, #f9f9f9, #d2fffd);
    padding: 80px 50px;
    text-align: center;
    min-height: 100vh;
}

/* EDU Container */
.edu-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* Education Cards */
.edu-card {
    background: #fff;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.edu-card:hover {
    transform: scale(1.05);
}

/* University Logo */
.edu-card img {
    width: 250px;
    height: 250px;
    border-radius: 25px;
    margin-bottom: 10px;
}

/* More Info Button */
.more-info {
    background: #0077b5;
    color: white;
    border: none;
    margin-top: 15px;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.more-info:hover {
    background: #005a8d;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Box */
.modal-content {
    background: #fff;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.4s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Modal Layout */
.modal-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Image */
.modal-body img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

/* Text */
.modal-text {
    flex: 1;
}

.modal-text h3 {
    margin-bottom: 10px;
    color: #333;
}

.modal-text p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* Status Styling */
.status {
    display: inline-block;
    font-size: clamp(12px, 3vw, 16px);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 12px;
    margin-top: 5px;
}

/* Blinking Animation for "Pursuing" */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* "Pursuing" - Blinking */
.pursuing {
    background: #003cff;
    color: white;
    animation: blink 1.5s infinite alternate;
}

/* "Completed" - Static (No Blinking) */
.completed {
    background: #28a745;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .edu-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .edu-card {
        width: 90%;
        max-width: 350px;
    }

    .edu-card img {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 90%;
    }
    
    .modal-body {
        flex-direction: column;
        text-align: center;
    }

    .modal-body img {
        width: 100px;
        height: 100px;
    }

    .edu-card img {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    #education {
        padding: 60px 20px;
    }

    .edu-card {
        width: 100%;
    }

    .edu-card img {
        width: 75%;
    }

    .status {
        font-size: 12px;
        padding: 3px 8px;
    }
}


/* Skills Section */
#skills {
    background: linear-gradient(135deg, #f9f9f9, #d2fffd);
    padding: 80px 50px;
    text-align: center;
    min-height: 100vh;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #f8e4a0;
    border-radius: 10px;
}

/* Skill Cards */
.skill-card {
    background: #dffffd;
    border-radius: 10px;
    padding: 20px;
    width: 90%;  /* Adjusted for responsiveness */
    max-width: 250px; /* Prevents it from getting too big */
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-5px);
}

/* Icons with Brand Colors */
.skill-card i {
    font-size: 40px;
    margin-bottom: 10px;
}

.skill-card:nth-child(1) i { color: #E34F26; }  /* HTML - Orange */
.skill-card:nth-child(2) i { color: #1572B6; }  /* CSS - Blue */
.skill-card:nth-child(3) i { color: #F7DF1E; }  /* JavaScript - Yellow */
.skill-card:nth-child(4) i { color: #61DAFB; }  /* React - Light Blue */
.skill-card:nth-child(5) i { color: #4DB33D; }  /* Database - Green */
.skill-card:nth-child(6) i { color: #3776AB; }  /* Python - Blue */
.skill-card:nth-child(7) i { color: #007396; }  /* Java - Dark Blue */
.skill-card:nth-child(8) i { color: #47A248; }  /* MongoDB */
.skill-card:nth-child(9) i { color: #4479A1; }  /* MySQL */
.skill-card:nth-child(10) i { color: #F05032; }  /* Git */

/* Progress Bar */
.progress-bar {
    width: 80%;  /* Adjusted for responsiveness */
    max-width: 180px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 8px;
    transition: width 1s ease-in-out;
}

/* Brand Colors for Progress Bars */
.skill-card:nth-child(1) .progress { background: #E34F26; }  /* HTML */
.skill-card:nth-child(2) .progress { background: #1572B6; }  /* CSS */
.skill-card:nth-child(3) .progress { background: #F7DF1E; }  /* JavaScript */
.skill-card:nth-child(4) .progress { background: #61DAFB; }  /* React */
.skill-card:nth-child(5) .progress { background: #4DB33D; }  /* Database */
.skill-card:nth-child(6) .progress { background: #FFD43B; }  /* Python */
.skill-card:nth-child(7) .progress { background: #EA2D2E; }  /* Java */
.skill-card:nth-child(8) .progress { background: #C0E8C0; }  /* MongoDB */
.skill-card:nth-child(9) .progress { background: #B0D0E0; }  /* MySQL */
.skill-card:nth-child(10) .progress { background: #F8C0A0; }  /* Git */

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .skills-container {
        padding: 10px;
    }
    
    .skill-card {
        width: 100%;
        max-width: 280px;
    }
}


/* Experience Section */
#experience {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
}

/* Title */
h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #007bff;
    transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

/* Left & Right Alternating */
.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
}

/* Timeline Icon */
.timeline-icon {
    position: absolute;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.8);
}

/* Timeline Content */
.timeline-content {
    width: 45%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll Animation */
.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile View */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content {
        width: 90%;
        text-align: left !important;
        margin-left: 40px;
    }

    .timeline-icon {
        left: 20px;
    }
}


/* Projects Section */
#projects {
    text-align: center;
    padding: 50px 20px;
    background: #ffdcc5;
    min-height: 100vh;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    padding-bottom: 20px;
    max-width: 350px;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card h3 {
    margin: 15px 0;
    font-size: 20px;
    color: #333;
}

.project-card p {
    font-size: 14px;
    padding: 0 15px;
    color: #666;
}

.tech-stack {
    margin: 10px 0;
    font-size: 24px;
}

.tech-stack i {
    margin: 0 5px;
    color: #007bff;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-card img {
        height: 160px; /* Slightly smaller for better fit */
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .project-card {
        max-width: 90%; /* Reduce width to fit better */
    }

    .project-card img {
        height: 150px;
    }

    .project-card h3 {
        font-size: 17px;
    }

    .project-card p {
        font-size: 12px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Ultra Small Screens (Less than 480px) */
@media (max-width: 480px) {
    .projects-container {
        gap: 10px;
    }

    .project-card {
        max-width: 95%;
        padding-bottom: 15px;
    }

    .project-card img {
        height: 140px;
    }

    .project-card h3 {
        font-size: 16px;
    }

    .project-card p {
        font-size: 11px;
        padding: 0 10px;
    }

    .btn {
        padding: 7px 10px;
        font-size: 13px;
    }
}


/* Technology Stack Icon Colors */
.tech-stack i.fa-html5 { color: #E34F26; }    /* HTML5 - Orange */
.tech-stack i.fa-css3-alt { color: #1572B6; } /* CSS3 - Blue */
.tech-stack i.fa-js { color: #F7DF1E; }       /* JavaScript - Yellow */
.tech-stack i.fa-react { color: #61DAFB; }    /* React - Light Blue */
.tech-stack i.fa-node-js { color: #339933; }  /* Node.js - Green */
.tech-stack i.fa-mongodb { color: #47A248; }  /* MongoDB - Green */
.tech-stack i.fa-vuejs { color: #42B883; }    /* Vue.js - Green */
.tech-stack i.fa-database { color: #FFA500; } /* Database - Orange */
.tech-stack i.fa-python { color: #3776AB; }   /* Python - Blue */
.tech-stack i.fa-java { color: #007396; }     /* Java - Blue */
.tech-stack i.fa-git { color: #F05032; }      /* Git - Red */
.tech-stack i.fa-mysql { color: #00758F; }    /* MySQL - Dark Blue */


/* Certifications Section */
#certifications {
    background: linear-gradient(135deg, #f9f9f9, #d2fffd);
    padding: 80px 50px;
    text-align: center;
    min-height: 100vh;
}
.certifications-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.certification-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.certification-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.certification-card img {
    width: 100%;
    border-radius: 5px;
}

/* Updated Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dim background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Content */
.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    max-width: 900px;
    animation: fadeIn 0.3s ease-in-out;
}


.popup img {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

/* Close Button Styling */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #ff4b5c;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
    color: #d63447;
}


/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Verify Button */
.verify-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.verify-btn:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #certifications {
        padding: 60px 30px;
    }

    .certifications-list {
        gap: 15px;
    }

    .certification-card {
        width: 220px;
    }

    .popup-content {
        max-width: 700px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    #certifications {
        padding: 50px 20px;
    }

    .certifications-list {
        flex-direction: column;
        align-items: center;
    }

    .certification-card {
        width: 80%; /* Make cards wider for better readability */
    }

    .popup-content {
        max-width: 90%;
        padding: 15px;
    }

    .popup img {
        width: 100%;
        height: auto; /* Ensure proper scaling */
    }

    .verify-btn {
        padding: 7px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .certification-card {
        width: 95%;
    }

    .popup-content {
        max-width: 95%;
        padding: 12px;
    }

    .close-btn {
        font-size: 24px;
        top: 8px;
        right: 10px;
    }

    .verify-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}


/* Contact Section */
#contact {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
}

/* Contact Layout */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: auto;
    flex-wrap: wrap;
    padding: 50px;
}

/* Lottie Animation */
.contact-animation {
    flex: 1;
    max-width: 300px;
    width: 40%;
}

.contact-animation lottie-player {
    width: 100%;
    height: auto;
}

/* Contact Card */
.contact-card {
    flex: 1;
    max-width: 450px;
    width: 50%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    text-align: left;
    margin-left: 100px;
    animation: fadeInUp 1s ease-in-out;
}

/* Form Title */
.contact-card h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #ffcc00;
}

/* Form Fields */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Input & Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}

/* Floating Labels */
.form-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: 0.3s ease-in-out;
}

/* Input Animation */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 14px;
    color: #ffcc00;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 2px solid #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
}

/* Button Styling */
button {
    width: 100%;
    padding: 12px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Button Hover Animation */
button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.5);
}

/* Success Message */
#form-message {
    margin-top: 15px;
    font-size: 16px;
    color: #00ff7f;
    text-align: center;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        padding: 40px;
        gap: 40px;
    }

    .contact-card {
        max-width: 80%;
        margin-left: 0; /* Remove the left margin */
        padding: 25px;
    }

    .contact-animation {
        max-width: 250px;
    }

    button {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }

    .contact-animation {
        max-width: 220px;
        width: 80%;
    }

    .contact-card {
        max-width: 100%;
        padding: 20px;
        margin: 0 auto;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 60px 15px;
    }

    .contact-container {
        padding: 20px;
        gap: 20px;
    }

    .contact-card {
        width: 100%;
        padding: 15px;
    }

    .contact-animation {
        max-width: 180px;
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }
}


/* Footer Section */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    padding: 50px 20px;
    position: relative;
}

/* Footer Layout */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
    gap: 20px;
}

/* Footer Sections */
.footer-section {
    flex: 1;
    padding: 10px;
}

/* Left: Thank You Message */
.thank-you {
    text-align: left;
}

.thank-you h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffb4b4;
}

.thank-you p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Center: Love Text & Copyright */
.center {
    text-align: center;
    flex-basis: 100%; /* Makes it full-width on smaller screens */
}

.love-text {
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

/* Improved Heart Animation */
.heart {
    color: red;
    display: inline-block;
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Copyright */
.copyright {
    margin-top: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4b5c;
    color: white;
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(255, 75, 92, 0.3);
}

#backToTop:hover {
    background: #ff2e44;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .thank-you {
        text-align: center;
    }

    .footer-section {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 30px 20px;
        gap: 10px;
    }

    .thank-you h3 {
        font-size: 22px;
    }

    .thank-you p {
        font-size: 14px;
    }

    .love-text {
        font-size: 14px;
    }

    .copyright {
        font-size: 12px;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 15px;
    }

    .footer-container {
        padding: 20px;
    }

    .thank-you h3 {
        font-size: 20px;
    }

    .thank-you p {
        font-size: 13px;
    }

    .love-text {
        font-size: 13px;
    }

    .copyright {
        font-size: 12px;
    }

    #backToTop {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
}
