:root {
    --bg-color-1: #002B5B;
    --bg-color-2: #1A5F7A;
    --bg-color-3: #159895;
    --text-color: #ffffff;
    --heading-color: #ffffff;
    --primary-color: #89a7c2;
    --accent-color: #4a90e2;
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(45deg, var(--bg-color-1), var(--bg-color-2), var(--bg-color-3));
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    min-height: 100vh;
}

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

/* Fluid Background Animation */
.fluid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--bg-color-1), var(--bg-color-2), var(--bg-color-3));
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

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

/* Fluid Blob */
.fluid-blob {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    filter: blur(80px);
    opacity: 0.7;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    animation: blobAnimation 20s ease-in-out infinite alternate;
}

@keyframes blobAnimation {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Particles.js Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent; /* Make particles container transparent */
    z-index: 0;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Profile Section Layout */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Navigation Buttons and Content Layout */
.nav-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nav-button {
    padding: 12px 24px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-button:hover {
    transform: translateY(-2px);
}

.nav-button.active {
    background-color: #004d99; /* Slightly lighter blue to show active state */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.content-section {
    display: none;
    background-color: #003366;
    color: white;
    width: 100%;
    padding: 30px;
    border-radius: 25px;
    margin: 0 0 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Buttons positioning */
.action-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.button {
    display: inline-block;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 0 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Typing Animation */
.typing-container {
    display: inline-block;
    font-size: 1.5em;
    margin: 15px 0;
    color: white;
}

.typed-text {
    font-weight: bold;
    color: #ffffff;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #ffffff;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { background-color: #ffffff; }
    49% { background-color: #ffffff; }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100% { background-color: #ffffff; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Education Section */
.education-card {
    background-color: rgba(255, 255, 255, 0.95);  /* Almost solid white background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.education-item {
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
    background-color: white;  /* Solid white for each item */
}

.education-item h3 {
    color: #003366;  /* Dark blue for university name */
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

.education-item .degree {
    color: #003366;  /* Dark blue for degree */
    font-weight: 500;
    margin-bottom: 5px;
}

.education-item .date {
    color: #1A5F7A;  /* Darker blue-green for date */
    font-size: 0.9em;
    margin-bottom: 5px;
}

.education-item .gpa {
    color: #003366;  /* Dark blue for GPA */
    font-weight: 500;
}

.publication {
    margin-top: 15px;
    padding: 15px;
    background: #003366;  /* Dark blue background */
    border-radius: 8px;
}

.publication h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.pub-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
}

.pub-authors {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.pub-venue {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.pub-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pub-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Experience Section */
.experience-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.experience-content {
    flex: 1;
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin: 10px 0;
}

.experience-details ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #333;
}

.experience-details li {
    margin-bottom: 8px;
}

.read-more-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #004d99;
}

/* Add this class when details are expanded */
.experience-details.expanded {
    max-height: 500px; /* Adjust based on content */
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

/* Section Titles */
.section-title {
    color: white;  /* Keep section title white */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Experience Cards */
.experience-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.experience-content {
    flex: 1;
}

.experience-content h3 {
    color: #003366;  /* Dark blue color */
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.date {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.project-category {
    margin-bottom: 30px;
}

.project-category h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.project-card {
    background-color: #89a7c2;  /* Light blue similar to the image */
    border-radius: 10px;
    padding: 20px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.project-card p {
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.4;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.project-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.read-more:hover, .view-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
}

/* Navigation Buttons */
.nav-buttons {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-button.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Resume Button Styles */
.resume-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.resume-button {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.resume-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-color-2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-color-1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        max-width: 95%;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    /* Profile Section */
    .profile-section {
        padding: 40px 15px;
    }

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

    h1 {
        font-size: 2em;
    }

    .typing-container {
        font-size: 1.2em;
    }

    /* Navigation */
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-button {
        width: 80%;
        max-width: 300px;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .button {
        width: 80%;
        max-width: 300px;
        margin: 5px 0;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .project-card {
        margin-bottom: 15px;
    }

    /* Experience Section */
    .experience-item {
        flex-direction: column;
        text-align: center;
    }

    .company-logo {
        margin: 0 auto 15px auto;
    }

    /* Education Section */
    .education-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .profile-photo {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.8em;
    }

    .typing-container {
        font-size: 1em;
    }

    .nav-button, 
    .button {
        width: 90%;
        padding: 10px 20px;
    }

    /* Adjust fluid blob for smaller screens */
    .fluid-blob {
        width: 300px;
        height: 300px;
        filter: blur(60px);
    }

    /* Content sections padding */
    .content-section {
        padding: 20px 15px;
    }

    /* Project cards */
    .project-card {
        padding: 15px;
    }

    .project-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .project-buttons button {
        width: 100%;
    }
}

/* Print styles for resume */
@media print {
    .fluid-background,
    .fluid-blob,
    .nav-buttons,
    .action-buttons {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
        background: white;
        box-shadow: none;
    }
}

/* Add Font Awesome in your HTML head */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 25px 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation Buttons */
.nav-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-button {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-button:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-button.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Skills Section Styles */
.skills-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h3 {
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #89a7c2;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

/* Skill Tag Colors */
.python { background-color: #3776AB; }
.r { background-color: #276DC3; }
.sql { background-color: #E48E00; }

.hadoop { background-color: #FF6B35; }
.spark { background-color: #E25A1C; }
.kafka { background-color: #000000; }
.azure { background-color: #008AD7; }
.databricks { background-color: #FF3621; }

.matplotlib { background-color: #11557C; }
.seaborn { background-color: #689DC5; }
.excel { background-color: #217346; }
.tableau { background-color: #E97627; }

.sklearn { background-color: #F7931E; }
.pytorch { background-color: #EE4C2C; }
.keras { background-color: #D00000; }
.tensorflow { background-color: #FF6F00; }

.nlp { background-color: #00C853; }
.llm { background-color: #9B6B9E; }
.regression { background-color: #4A90E2; }
.classification { background-color: #7B68EE; }
.clustering { background-color: #FFB900; }

.stats { background-color: #2E4374; }
.time-series { background-color: #00BFA6; }
.analysis { background-color: #6B4423; }
.modeling { background-color: #B83B5E; }
.ab { background-color: #6A0572; }
.hypothesis { background-color: #379237; }
.bayesian { background-color: #FF6B6B; }

.english { background-color: #4A90E2; }
.hindi { background-color: #FF9800; }

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
}

.project-buttons a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.view-project {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: white;
}

.project-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

