/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background-color: #131516; /* Dark background color */
    color: #fff; /* Default text color */
    overflow: hidden; /* Hide scrollbars caused by moving elements */
    font-size: 1.1em; /* Increase base font size for better readability */
}

/* Business Card Styling */
.business-card {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to right, #024945, #12a89c);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 80%;
    max-width: 650px;
    height: auto;
    color: #fff;
    padding: 30px;
    position: relative;
}

.contact-info, .profile-picture {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info {
    width: 60%;
}

.contact-info h1 {
    font-size: 2em;
    color: #d4f4f1;
}

.contact-info h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #a8dad7;
}

.contact-info p {
    font-size: 1em;
    margin: 8px 0;
}

.contact-info a {
    color: #d4f4f1; /* Light color for links */
    text-decoration: none;
}

.contact-info a:hover {
    color: #fff; /* Hover color for links */
}

.profile-picture {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cool Effects on Profile Picture */
.profile-picture img {
    width: 200px; /* Ensure width and height are equal for circular shape */
    height: 200px;
    border-radius: 50%; /* Keep the image circular */
    object-fit: cover; /* Maintain aspect ratio inside the circle */
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    filter: grayscale(100%); /* Initially grayscale */
}

.profile-picture img:hover {
    transform: scale(1.1); /* Zoom effect */
    filter: grayscale(0%); /* Remove grayscale on hover */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Typing Effect */
#typing-text {
    border-right: 2px solid #fff;
    white-space: nowrap;
    overflow: hidden;
}

/* Social Icons Styling */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    text-decoration: none;
    color: #fff;
    margin-right: 15px;
    font-size: 1.5em;
}

.social-icons a:hover {
    color: #d4f4f1;
}

.social-icon {
    transition: transform 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    filter: drop-shadow(0 0 0px #00ffe7);
}

.social-icon:hover {
    transform: scale(1.25) rotate(-8deg);
    color: #00ffe7;
    filter: drop-shadow(0 0 8px #00ffe7) brightness(1.2);
    animation: bounce 0.4s;
}

.social-icon:active {
    transform: scale(0.95) rotate(2deg);
    color: #ff00c8;
    filter: drop-shadow(0 0 12px #ff00c8);
}

@keyframes bounce {
    0%   { transform: scale(1.1) translateY(0); }
    30%  { transform: scale(1.25) translateY(-8px); }
    60%  { transform: scale(1.15) translateY(2px); }
    100% { transform: scale(1.2) translateY(0); }
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure particles stay behind content */
    top: 0;
    left: 0;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .business-card {
        flex-direction: column;
        width: 90%;
    }

    .contact-info, .profile-picture {
        width: 100%;
        text-align: center;
    }

    .profile-picture img {
        width: 150px;
        height: 150px;
    }
}

/* Dark Mode */
body.dark-mode {
    background-color: #131516;
    color: #fff;
}

/* Light Mode */
body.light-mode {
    background-color: #f0f0f0;
    color: #000;
}

/* Toggle Switch */
.toggle-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    transition: background-color 0.3s;
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    top: 2.5px;
    left: 2.5px;
    transition: transform 0.3s;
}

.toggle-switch input:checked + label {
    background-color: #4caf50;
}

.toggle-switch input:checked + label::after {
    transform: translateX(25px);
}
