body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

header.navbar-scrolled {
    background-color: #444;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

header nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

header nav a:hover {
    background-color: #555;
    transform: scale(1.05);
}

header nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s;
}

header nav button:hover {
    color: #ffdd57;
}



main {
    margin: 80px 20px 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

main h2 {
    margin-top: 0;
    color: #333;
    position: relative;
    font-size: 2em;
}

main h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0072ff;
    margin-top: 10px;
    margin-bottom: 20px;
    transition: width 0.3s;
}

main h2:hover::after {
    width: 100px;
}

/* Typewriter Effect for Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    color: white;
    animation: backgroundShift 10s infinite alternate;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section p {
    font-size: 1.7em;
    margin-top: 20px;
    font-weight: 300;
    animation: fadeInUp 2s ease-out;
}

/* Skill Progress Bars */
.skills ul {
    list-style-type: none;
    padding: 0;
}

.skills ul li {
    margin-bottom: 15px;
    overflow: hidden;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    width: 80%;
    background-color: #ddd;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    flex: 1;
    margin-left: 15px;
}

.progress-bar-fill {
    height: 20px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    width: 0;
    border-radius: 25px;
    transition: width 1s;
}

.skills ul li:hover .progress-bar-fill {
    width: 100%;
}

.dark-mode .progress-bar-fill {
    background: linear-gradient(90deg, #ff5e5e, #ff4e50);
}

/* Project and Blog Cards */
.project-card,
.blog-card {
    display: inline-block;
    width: calc(33.333% - 20px);
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}

.project-card:hover,
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.project-card a,
.blog-card a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #0072ff;
    transition: color 0.3s;
}

.project-card a:hover,
.blog-card a:hover {
    color: #0056b3;
}

.project-card .overlay,
.blog-card .overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: opacity 0.3s;
    font-size: 1.2em;
    padding: 20px;
    text-align: center;
}

.project-card:hover .overlay,
.blog-card:hover .overlay {
    display: flex;
    opacity: 1;
}

/* Testimonial Section */
.testimonials {
    text-align: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.testimonial-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-carousel .testimonial {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    font-style: italic;
}

.testimonial-carousel .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.testimonial-carousel .controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-carousel .controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-mode .testimonial-carousel .testimonial {
    background: #2e2e2e;
    color: #ccc;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form input[type="submit"] {
    background-color: #0072ff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.contact-form input[type="submit"]:hover {
    background-color: #0056b3;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background-color: #333;
    color: #ccc;
    border-color: #444;
}

.dark-mode .contact-form input[type="submit"] {
    background-color: #ff5e5e;
    color: #fff;
}

.dark-mode .contact-form input[type="submit"]:hover {
    background-color: #ff4e50;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    position: relative;
    margin-top: 20px;
    transition: background-color 0.3s; /* Smooth transition for background color */
}

footer:hover {
    background-color: #222; /* Darker shade on hover */
}

.social-media {
    display: inline-block;
    margin-bottom: 10px;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ffdd57;
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

.social-link i {
    transition: transform 0.3s;
}

.social-link i:hover {
    transform: scale(1.1); /* Scale up on hover */
}

footer p {
    margin: 10px 0;
}

/* Connect Link Styles */
.connect-link {
    font-size: 1.2rem;
    color: #fff;
    background-color: #0077b5;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.connect-link:hover {
    background-color: #005582;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.connect-link:active {
    background-color: #003d75;
    transform: scale(1.02);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Default width for responsiveness */
    max-width: 600px; /* Maximum width for larger screens */
    min-width: 300px; /* Minimum width for small screens */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.9);
}

.popup-content {
    text-align: center;
    color: #fff;
}

.popup h2 {
    margin-top: 0;
    font-size: 2em; /* Scalable heading size */
}

.popup button {
    background-color: #0072ff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em; /* Scalable button size */
    transition: background-color 0.3s, transform 0.3s;
}

.popup button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.popup button.close {
    background-color: #ff5e5e;
}

.popup button.close:hover {
    background-color: #ff4e50;
}

.popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .popup {
        width: 80%; /* Adjust width for slightly smaller screens */
    }

    .popup h2 {
        font-size: 1.8em; /* Adjust heading size */
    }
}

@media screen and (max-width: 992px) {
    .popup {
        width: 85%; /* Adjust width for tablet screens */
    }

    .popup h2 {
        font-size: 1.6em; /* Adjust heading size for tablets */
    }

    .popup button {
        padding: 10px 20px;
        font-size: 1em; /* Adjust button size */
    }
}

@media screen and (max-width: 768px) {
    .popup {
        width: 90%; /* Increase width for smaller screens */
        padding: 15px;
    }

    .popup h2 {
        font-size: 1.5em; /* Further adjust heading size */
    }

    .popup button {
        padding: 10px 18px;
        font-size: 0.95em; /* Slightly reduce button text size */
    }
}

@media screen and (max-width: 480px) {
    .popup {
        width: 95%; /* Full width for very small screens */
        padding: 15px;
        border-radius: 10px; /* Retain some border radius */
    }

    .popup h2 {
        font-size: 1.4em; /* Further adjust heading size */
    }

    .popup button {
        padding: 8px 16px;
        font-size: 0.9em; /* Further reduce button size */
    }
}

@media screen and (max-width: 320px) {
    .popup {
        width: 98%; /* Slightly reduce width for the smallest screens */
        padding: 10px;
        border-radius: 8px; /* Smaller border radius */
    }

    .popup h2 {
        font-size: 1.2em; /* Final adjustment for heading size */
    }

    .popup button {
        padding: 6px 12px;
        font-size: 0.85em; /* Final adjustment for button size */
    }
}

.dark-mode .popup {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #ccc;
}

.dark-mode .popup button {
    background-color: #ff5e5e;
}

.dark-mode .popup button:hover {
    background-color: #ff4e50;
}

/* LinkedIn Popup Styles */
.linkedin-popup {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px;
    height: 600px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.linkedin-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.social-icon {
        width: 50px;
        height: 50px;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .social-icon:hover {
        transform: scale(1.2);
        filter: brightness(1.2);
    }
    .social-icon:active {
        animation: rotateIcon 0.5s ease;
    }
    @keyframes rotateIcon {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }

    @media only screen and (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav ul li {
        display: block;
    }

    main {
        padding: 1rem;
    }
}

/* Medium Devices (tablets, 768px and down) */
@media only screen and (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    main {
        padding: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    main {
        max-width: 960px;
        margin: 0 auto;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        filter: brightness(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.profile-image {
    border-radius: 50%;
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: float 10s ease-in-out infinite, pulse 5s ease-in-out infinite;
}

.profile-image:hover {
    animation: pulse 1s ease-in-out infinite, float 3s ease-in-out infinite;
}

@keyframes zoom3D {
    0% {
        transform: perspective(1000px) scale(0.8) translateZ(-200px);
        opacity: 0;
    }
    100% {
        transform: perspective(1000px) scale(1) translateZ(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes textureShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes zoom3D {
    0% {
        transform: perspective(1000px) scale(0.8) translateZ(-200px);
        opacity: 0;
    }
    100% {
        transform: perspective(1000px) scale(1) translateZ(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes textureShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Keyframe Animations */

/* 3D Flip Animation */
@keyframes flipIn {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    50% {
        transform: rotateX(10deg);
        opacity: 0.5;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

/* Glow and Pulse Effect */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.8), 0 0 10px rgba(0, 255, 255, 0.6), 0 0 15px rgba(0, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.8), 0 0 10px rgba(0, 255, 255, 0.6), 0 0 15px rgba(0, 255, 255, 0.4);
    }
}

/* Slide-In Animation */
@keyframes slideIn {
    0% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Texture Background Shift Animation */
@keyframes textureShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Video Section Styling */
.video-section {
    margin-top: 20px;
    background: url('your-texture-image.jpg') repeat;
    background-size: 200% 200%;
    animation: textureShift 10s linear infinite, slideIn 1s ease-out;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    padding: 20px;
}

/* Updated Iframe Styling */
iframe {
    width: 70%; /* Increased width to 70% for a wider rectangle */
    height: 40vh; /* Set height to 40% of the viewport height for a rectangular shape */
    border: 4px solid rgba(0, 255, 255, 0.7); /* Moderately thick and more opaque border */
    border-radius: 10px; /* Slight rounding for a sleek look */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 0.4); /* Enhanced glow effect with a larger shadow */
    animation: flipIn 1.5s ease-out, glowPulse 3s ease-in-out infinite, zoomIn 1.2s ease-out 1; /* Combined entry and pulse animations */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
}

iframe:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.9), 0 0 40px rgba(0, 255, 255, 0.6); /* Brighter glow on hover */
}

/* Light Mode (default) */
/* General Styles */
body {
    background: linear-gradient(to right, #fefae0, #f0efeb);
    color: #333;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scroll Effect */
html {
    scroll-behavior: smooth;
}

/* Header Styles */
header {
    background-color: #0072ff;
    color: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header.navbar-scrolled {
    background-color: #0056b3;
    transform: translateY(-5px);
}

/* Main Content */
main {
    padding: 2rem;
    background-color: #fefae0;
    color: #333;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Project Cards */
.project-card {
    background-color: #fff;
    color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1.5rem 0;
    transform: translateY(20px);
    opacity: 0;
    animation: slide-up 0.6s ease-out forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-card a {
    color: #0072ff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.project-card a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #0072ff;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.project-card a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Scroll Animation */
@keyframes slide-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact Form */
.contact-form {
    background: #fff;
    color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0072ff;
    box-shadow: 0 0 8px rgba(0, 114, 255, 0.5);
    outline: none;
}

/* Button Styles */
button {
    background-color: #0072ff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        margin: 1rem 0;
        padding: 1rem;
    }

    header {
        padding: 0.8rem;
    }

    button {
        width: 100%;
    }
}


/* Dark Mode */
.dark-mode {
    background-color: #121212;
    color: #850e0e;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dark-mode header {
    background-color: #1e1e1e;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.dark-mode header.navbar-scrolled {
    background-color: #2e2e2e;
    transform: translateY(-5px);
    transition: background-color 0.3s ease-in-out;
}

.dark-mode main {
    background-color: #1e1e1e;
    color: #ccc;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dark-mode .project-card {
    background-color: #2e2e2e;
    color: #ccc;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1);
}

.dark-mode .project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.dark-mode .project-card a {
    color: #ff5e5e;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.dark-mode .project-card a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ff5e5e;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.dark-mode .project-card a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.dark-mode .contact-form {
    background: #2e2e2e;
    color: #ccc;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background: #444;
    color: #ccc;
    border-color: #555;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.dark-mode .contact-form input:focus,
.dark-mode .contact-form textarea:focus {
    border-color: #ff5e5e;
    box-shadow: 0 0 8px rgba(255, 94, 94, 0.5);
}

.dark-mode .contact-form input[type="submit"] {
    background: linear-gradient(120deg, #ff4e50, #ff5e5e);
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.dark-mode .contact-form input[type="submit"]:hover {
    background: linear-gradient(120deg, #ff2e2e, #ff4e50);
    transform: translateY(-2px);
}

/* Chatbot Container Styles */
#botContainer {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(20%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#closeButton {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#closeButton:hover {
    color: #ff4b4b;
}

#botChatbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

#botMessages {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.message.user {
    background-color: #0078ff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.message.user:hover {
    background-color: #005bb5;
}

.message.bot {
    background-color: #f0f0f5;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.message.bot:hover {
    background-color: #e0e0e5;
}

/* Input and Button Styles */
.input-container {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 8px;
    background-color: #ffffff;
}

#userInput {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#userInput:focus {
    background-color: #f0f0f0;
    box-shadow: 0 0 8px rgba(0, 120, 255, 0.2);
}

#sendMessage {
    background-color: #0078ff;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 8px;
}

#sendMessage:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

/* Dark Mode Styles */
body.dark-mode #botContainer {
    background-color: #2b2b2b;
    color: #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode #botMessages {
    background-color: #333;
}

body.dark-mode .message.user {
    background-color: #005bb5;
    color: #fff;
}

body.dark-mode .message.bot {
    background-color: #444;
    color: #ddd;
}

body.dark-mode #userInput {
    background-color: #444;
    color: #eee;
}

body.dark-mode #sendMessage {
    background-color: #005bb5;
}

body.dark-mode #sendMessage:hover {
    background-color: #003a7a;
}

/* Responsive Styles */
@media (max-width: 480px) {
    #botContainer {
        width: 90%;
        right: 5%;
        bottom: 15px;
    }

    #botMessages {
        padding: 12px;
    }

    #userInput,
    #sendMessage {
        font-size: 14px;
        padding: 10px;
    }
}

/* Side Icon Styles */
.side-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 50%;
    overflow: hidden;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.side-icon:hover {
    transform: scale(1.1);
}

.side-icon img {
    width: 100%;
    height: auto;
}

