/* General Body Styling */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    scroll-behavior: smooth;
}


/* Header Styling */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background-color: rgba(30, 30, 30, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

header a {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-decoration: none;
}

header:hover {
    background-color: rgba(50, 50, 50, 0.9);
}


/* Navbar Styling */

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #bb86fc;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #bb86fc;
    color: #121212;
    box-shadow: 0px 2px 10px rgba(187, 134, 252, 0.8);
}


/* Section Styling */

.section {
    padding: 50px 10%;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    max-width: 1200px;
    scroll-margin-top: 90px;
}


/* Hero Section Styling */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

#typewriter {
    font-size: 20px;
    margin-top: -20px;
}

.contact-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the content horizontally */
    text-align: center;
    /* Center the text */
    gap: 15px;
    /* Add spacing between items */
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    /* Align icon and text vertically */
    gap: 10px;
    /* Add spacing between the icon and text */
    font-size: 16px;
    /* Adjust font size */
    color: #e0e0e0;
}

.contact-info-item i {
    font-size: 20px;
    /* Make the icon slightly larger */
    color: #bb86fc;
    /* Match the theme color */
}


/* Background Animation */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #bb86fc, #121212, #000);
    animation: heartbeat 3s infinite;
    z-index: -1;
    transform: translate(-50%, -50%);
    transform-origin: center;
}


/* Heartbeat Animation Keyframes */

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}


/* Hero Content Styling */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(187, 134, 252, 0.8);
}


/* Text Styling */

.hero-content h2 {
    font-size: 24px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 5px;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 20px;
}


/* Social Links Styling */

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #bb86fc;
    transform: scale(1.2);
}


/* Button Styling */

.btn {
    padding: 12px 25px;
    font-size: 18px;
    color: #121212;
    background-color: #bb86fc;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.8);
}


/* Showcase Section */

.showcase {
    padding: 60px 10%;
    text-align: center;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
}

.showcase h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.showcase-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 350px;
    margin: 0 auto;
}

.showcase-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.showcase-card h3 {
    color: #bb86fc;
    margin-top: 10px;
}

.showcase-card p {
    color: #e0e0e0;
    margin: 10px 0 15px;
    flex-grow: 1;
}

.showcase-card .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    background-color: #bb86fc;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.showcase-card .btn:hover {
    background-color: #9b67e0;
    transform: scale(1.05);
}


/* Modal Styling */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-content {
    position: relative;
    text-align: center;
}

.gallery-image {
    max-width: 80%;
    max-height: 80%;
}

.gallery-description {
    color: white;
    margin-top: 10px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}


/* Skills Section */

.skills {
    padding: 60px 10%;
    background-color: #1e1e1e;
    /* Matches dark theme */
    color: #e0e0e0;
}

.skills h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.programming-skills,
.tools-skills {
    flex: 1;
    min-width: 300px;
}

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

.skill-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}


/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.4);
    /* Transparent dark overlay */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


/* Overlay */

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    cursor: pointer;
}


/* Glassmorphism Container */

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 80%;
    max-height: 90%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    /* Glass background */
    backdrop-filter: blur(15px);
    /* Glassmorphism blur */
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Subtle shadow */
    overflow: hidden;
    padding: 20px;
}


/* Image and Description */

.gallery-content {
    flex: 1;
    text-align: center;
    position: relative;
}

.gallery-image {
    max-width: 70%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    /* Shadow for the image */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.gallery-description {
    margin-top: 10px;
    font-size: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    /* Add subtle text shadow */
}


/* Navigation Buttons */

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    background: rgba(255, 255, 255, 0.2);
    /* Transparent button background */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 10px;
    backdrop-filter: blur(5px);
    /* Glassmorphism for buttons */
    transition: all 0.3s ease-in-out;
    z-index: 3;
}

.gallery-nav.prev {
    left: 5%;
}

.gallery-nav.next {
    right: 5%;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    /* Slightly brighter on hover */
}


/* Partial Visibility of Adjacent Slides */

.gallery-container::before,
.gallery-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.gallery-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    /* Correct gradient for left */
}

.gallery-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
    /* Correct gradient for right */
}


/* Animations */

.gallery-image {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Contact Section Styling */

.contact {
    text-align: center;
    padding: 50px 10%;
    background-color: #121212;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 16px;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.contact-container .btn {
    width: 105%;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #bb86fc;
}

.contact-form button {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.contact-form button:hover {
    transform: scale(1.05);
    background-color: #9b67e0;
}


/* Social Media Styling */

.social-media {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.social-media p {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.social-icon {
    font-size: 35px;
    letter-spacing: 20px;
    color: #bb86fc;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #9b67e0;
    transform: scale(1.2);
}


/* Footer Styling */

footer {
    background-color: #1e1e1e;
    /* Matches the dark theme */
    color: #e0e0e0;
    /* Light text for readability */
    text-align: center;
    padding: 20px 10px;
    font-size: 16px;
    border-top: 1px solid #444;
    /* Subtle border for separation */
    position: relative;
    z-index: 1;
}

footer a {
    color: #bb86fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #9b67e0;
    /* Slightly darker shade on hover */
}

footer .btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(187, 134, 252, 0.6);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

footer .btn:hover {
    background-color: #9b67e0;
    transform: scale(1.1);
}


/* Responsive Footer Button */

@media (max-width: 768px) {
    footer .btn {
        position: static;
        transform: translateY(0);
        margin-top: 15px;
    }
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 16px;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(187, 134, 252, 0.5);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-btn:hover {
    background-color: #9b67e0;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(187, 134, 252, 0.8);
}


/* Light Mode Styles */

body.light-mode {
    background-color: #f8f4fc;
    /* Soft lavender background */
    color: #3c3c3c;
    /* Global pastel black for readability */
}

body.light-mode header {
    background-color: #ddd1f6;
    /* Soft pastel lavender */
    color: #3c3c3c;
    box-shadow: 0 2px 5px rgba(200, 200, 200, 0.5);
}

body.light-mode header h1 {
    color: #3c3c3c;
    /* Pastel black for header title */
}

body.light-mode nav ul li a {
    color: #3c3c3c;
    /* Dark pastel black for navigation links */
}

body.light-mode nav ul li a:hover {
    background-color: #d7cee9;
    /* Hover pastel highlight */
    color: #3c3c3c;
}

body.light-mode .section {
    background-color: #ffffff;
    /* Clean white for sections */
    color: #3c3c3c;
    /* Global pastel black for text */
    box-shadow: 0 4px 15px rgba(200, 200, 200, 0.3);
}

body.light-mode .hero {
    background-color: #fdeff0;
    /* Light pastel pink */
    color: #3c3c3c;
    /* Pastel black for text */
}

body.light-mode .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #f9d4d5, #f8f4fc, #f3e4ed);
    animation: heartbeat-light 3s infinite;
    z-index: -1;
    transform: translate(-50%, -50%);
    transform-origin: center;
}


/* Hero Content Text */

body.light-mode .hero-content h1,
body.light-mode .hero-content h2,
body.light-mode .subtitle {
    color: #3c3c3c;
    /* Pastel black for all hero text */
}

body.light-mode .btn {
    background-color: #a5d8d6;
    /* Pastel teal button */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(150, 230, 220, 0.5);
}

body.light-mode .btn:hover {
    background-color: #91c7c5;
    /* Slightly darker teal */
    box-shadow: 0 6px 15px rgba(150, 230, 220, 0.8);
}

body.light-mode .showcase-card {
    background-color: #fffaf3;
    /* Warm pastel beige for cards */
    color: #3c3c3c;
    /* Pastel black for card text */
    box-shadow: 0 4px 15px rgba(200, 200, 200, 0.3);
}

body.light-mode .showcase-card h3,
body.light-mode .showcase-card p {
    color: #3c3c3c;
    /* Consistent pastel black for headings and paragraphs */
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background-color: #f9f8fc;
    /* Subtle pastel lavender */
    color: #3c3c3c;
    /* Input text color */
    border: 1px solid #d5cfea;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    border-color: #b8a3e3;
    /* Light purple border focus */
}

body.light-mode footer {
    background-color: #eae4f7;
    /* Pastel purple footer */
    color: #3c3c3c;
}

body.light-mode footer a {
    color: #3c3c3c;
    /* Footer link color */
}

body.light-mode footer a:hover {
    color: #6a609e;
    /* Slightly darker pastel purple for hover */
}

body.light-mode .floating-btn {
    background-color: #ffcccb;
    /* Light pastel coral button */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 204, 203, 0.5);
}

body.light-mode .floating-btn:hover {
    background-color: #ffa4a2;
    /* Slightly darker coral */
    box-shadow: 0 6px 15px rgba(255, 204, 203, 0.8);
}


/* Ensure all other sections use the same color */

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode p,
body.light-mode span,
body.light-mode li,
body.light-mode a {
    color: #3c3c3c;
    /* Global pastel black */
}

body.light-mode .modal {
    background: rgba(255, 255, 255, .1);
    /* Light background for modal */
    color: #3c3c3c;
    /* Darker text color */
}

body.light-mode .modal .gallery-container {
    background: rgba(255, 255, 255, 0.4);
    /* Light glass background */
    backdrop-filter: blur(15px);
    /* Keep the blur for glassmorphism effect */
    box-shadow: 0 4px 15px rgba(200, 200, 200, 0.5);
    /* Subtle shadow */
}


/* Partial Visibility of Adjacent Slides */

body.light-mode .modal .gallery-container::before,
body.light-mode .modal .gallery-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    background: linear-gradient(to right, rgb(255, 255, 255), transparent);
    z-index: 2;
}

body.light-mode .modal .gallery-container::before {
    left: 0;
    background: linear-gradient(to right, rgb(255, 255, 255), transparent);
    /* Correct gradient for left */
}

body.light-mode .modal .gallery-container::after {
    right: 0;
    background: linear-gradient(to left, rgb(255, 255, 255), transparent);
    /* Correct gradient for right */
}

body.light-mode .modal .gallery-content {
    color: #3c3c3c;
    /* Ensure content text is dark */
}

body.light-mode .modal .gallery-description {
    color: #3c3c3c;
    /* Dark text for descriptions */
}

body.light-mode .gallery-nav {
    background: rgba(0, 0, 0, 0.2);
    /* Make navigation buttons slightly darker for contrast */
}

body.light-mode .gallery-nav:hover {
    background: rgba(0, 0, 0, 0.4);
    /* Darker hover effect for nav buttons */
}