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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #eaeaea;
    background-color: #121212; /* Dark background */
    padding: 0 1rem;
}
/* Welcome Card Styling */
.welcome-card {
    position: fixed;
    top: -200px; /* Start off-screen */
    left: -200px; /* Start off-screen */
    width: 300px;
    height: 150px;
    background-color: #333333; /* Replace with your image */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000; /* Ensure it appears above all other elements */
    opacity: 0; /* Initially hidden */
    transform: translate(-50%, -50%); /* Positioned off-screen */
    transition: all 2s ease-in-out; /* Smooth slide-in and fade-out */
}

.welcome-card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.welcome-card p {
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Text shadow for readability */
}

/* When the card is active (visible) */
.welcome-card.active {
    top: 20px; /* Slide to final position */
    left: 20px; /* Slide to final position */
    opacity: 1; /* Fully visible */
    transform: translate(0, 0); /* Reset transform */
}

/* When the card is fading out */
.welcome-card.hidden {
    opacity: 0; /* Gradual disappearance */
    transition: opacity 2s ease-in-out; /* Fade-out effect */
}


/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #1e1e1e; /* Darker background for sections */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a2a;
}

/* Header Section */
header {
    text-align: center;
    padding: 2rem 0;
    background-color: #333333; /* Slightly lighter header background */
    color: #ffffff;
    border-bottom: 4px solid #007BFF;
}

.profile {
    margin-bottom: 1rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #007BFF;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    color: #aaaaaa;
}

.location {
    font-size: 0.9rem;
    font-weight: bold;
    color: #bbbbbb;
}

/* Social Links Styling */
.social-links {
    list-style: none; /* Remove default list styling */
    display: flex; /* Use Flexbox for layout */
    justify-content: center; /* Center the links horizontally */
    gap: 10px; /* Space between links */
    padding: 0; /* Remove default padding */
    margin: 20px 0; /* Add vertical spacing */
    flex-wrap: nowrap; /* Prevent wrapping (1 horizontal line) */
    overflow-x: auto; /* Allow scrolling if content overflows */
}

.social-links li {
    font-size: 1rem; /* Maintain readable font size */
    margin: 0; /* Ensure no extra margins */
}

.social-links a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Use theme color */
    font-size: 1rem; /* Ensure consistent font size */
    padding: 5px 10px; /* Add padding for clickable area */
    white-space: nowrap; /* Prevent text wrapping */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.social-links a:hover {
    color: #007BFF; /* Change color on hover (adjust to your theme) */
}

/* Section Titles */
h2 {
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Work Experience Section */
.experience-item h3 {
    font-size: 1.3rem;
    color: #ffffff;
}

.experience-item .company {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #aaaaaa;
}

.experience-item ul {
    list-style: disc;
    margin-left: 1.5rem;
}

/* Education Section */
.education-item h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

.education-item .school {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #aaaaaa;
}

/* Skills Section */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    background: #007BFF;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.project-item {
    margin-bottom: 1rem;
}

.project-item a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.project-item a:hover {
    text-decoration: underline;
}

/* Publications Section */


.publication-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 20px; /* Add spacing between publication cards */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
}

.publication-list li {
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.publication-list li:hover {
    transform: translateY(-5px); /* Subtle upward lift on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.publication-list h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #ffffff;
}

.publication-list p {
    margin: 5px 0;
    font-size: 1rem;
}

.publication-list a {
    display: inline-block;
    margin-top: 10px;
    color: #1e90ff; /* Link color */
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #1e90ff;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

.publication-list a:hover {
    background-color: #1e90ff;
    color: #ffffff; /* Contrast text color on hover */
}

/* Parent container */
#visitor-count-container {
    position: relative; /* Ensures child elements are positioned relative to this container */
    display: flex; /* Enables alignment of child content */
    justify-content: flex-end; /* Aligns content to the right */
    margin: 0; /* Remove any extra spacing around the container */
    padding: 10px; /* Optional: Adds internal spacing */
    font-family: Arial, sans-serif; /* Optional: Sets a clean font */
}

/* Style for the paragraph */
#visitor-count-container p {
    margin: 0; /* Remove extra spacing from the paragraph */
    font-size: 14px; /* Adjust the font size as needed */
}



/* Contact Section */
#contact ul {
    list-style: none;
    margin-top: 1rem;
}

#contact ul li {
    margin-bottom: 0.5rem;
    color: #eaeaea;
}

#contact a {
    color: #007BFF;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: #333333;
    color: #ffffff;
    border-top: 4px solid #007BFF;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0 0.5rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .skills-list {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .skills-list li {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 600px) {
    .welcome-card {
        width: 95%; /* Reduce width for smaller screens */
        font-size: 0.9rem; /* Adjust font size */
    }

    .welcome-card h2 {
        font-size: 1rem; /* Reduce header font size */
    }

    .welcome-card p {
        font-size: 0.8rem; /* Reduce paragraph font size */
    }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .social-links {
        gap: 5px; /* Reduce gap for smaller screens */
    }

    .social-links a {
        font-size: 0.9rem; /* Slightly reduce font size for smaller screens */
    }
}

@media (max-width: 768px) {
    #publications h2 {
        font-size: 1.8rem;
    }

    .publication-list h3 {
        font-size: 1.2rem;
    }

    .publication-list p {
        font-size: 0.9rem;
    }

    .publication-list a {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}
