/* Base styles */
:root {
    /* Portfolio colors */
    --primary-color: #462d8a;
    --secondary-color: #253978;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --spacing: 2rem;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles for dark theme */
[data-theme="dark"] {
    --background: #121212;
    --text-color: #f4f4f4;
    --section-bg: #222;
    --primary-color: #3b82f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Profile Section  Same Background as Experience */
#about {
    background-color: #f3f4f6;
    /* Same as Experience Section */
    padding: 4rem 0;
}

/*  Metallic Shine Effect */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(70deg, #e6e6e6, #483789, #2563eb, #3a0988, #e6e6e6);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallicShine 4s infinite linear;
}

/* Shine Animation */
@keyframes metallicShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/*  Navbar Links - Keep Side by Side */
.nav-links {
    display: flex;
    gap: 20px;
    /* Adjust spacing between links */
    list-style: none;
}

/*  Metallic Shine Effect for Navbar Links */
.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    /* Ensures links stay in a row */
    background: linear-gradient(70deg, #e6e6e6, #483789, #2563eb, #3a0988, #e6e6e6);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallicShine 4s infinite linear;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect: Slightly Scale Up */
.nav-links a:hover {
    transform: scale(1.1);
}

/*  Metallic Shine Animation */
@keyframes metallicShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section - Animated Background */
.hero {
    background: linear-gradient(-65deg, #3175a2, #eef0f3, #1d69ab, #809aca);
    background-size: 400% 400%;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    animation: gradientAnimation 10s ease infinite;
}

/*  Animated Gradient Background */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/*  Floating Profile Picture */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgb(92, 90, 136);
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.6);
    animation: float 4s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}


/*  Neon Glow Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.social-links a:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/*  Metallic Shine Effect for Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(70deg, #e6e6e6, #483789, #2563eb, #3a0988, #e6e6e6);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallicShine 8s infinite linear;
}

/* Reuse Shine Animation */
@keyframes metallicShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Experience */
.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-item {
    background-color: var(--background);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.experience-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.date {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.responsibilities {
    list-style-type: none;
    color: var(--text-color);
    padding-left: 1.5rem;
}

.responsibilities li {
    position: relative;
    margin-bottom: 0.75rem;
}

.responsibilities li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Contact Info Box - Improved Styling */
.contact-info {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, var(--section-bg) 10%, var(--background) 90%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-info p {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hover Effect - Make it Interactive */
.contact-info p:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-info p+p {
    margin-top: 12px;
    /* Adds space between items */
}

/* Icons */
.contact-info i {
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: var(--transition);
}

.contact-info p:hover i {
    color: var(--secondary-color);
}

/* Contact Form */
#contact-form {
    flex: 1;
    padding: 20px;
    background: var(--background);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 15px;
}

/* Improved Input Fields */
input,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Focus Effect */
input:focus,
textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

/* Send Button - Styled */
.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

/* Button Hover Effect */
.btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Floating Contact Button */
#contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

#contact-button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info,
    #contact-form {
        width: 100%;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--section-bg) 10%, var(--background) 90%);
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 20px;
}

/* Social Links */
.footer-social {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: none;
}

#back-to-top:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 15px;
    }

    .footer-social {
        flex-wrap: wrap;
    }
}

/*  Underline Animation on Hover */
/*  Underline Animation on Hover */
.nav-links a {
    position: relative;
    text-decoration: none;
    color: #3e2389;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

/* Default Underline (Hidden Initially) */
.nav-links a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: #2f018a;
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/*  Set Different Underline Widths */
.nav-links a:nth-child(1):hover::after {
    width: 100%;
}

/* Profile */
.nav-links a:nth-child(2):hover::after {
    width: 30%;
}

/* Experience */
.nav-links a:nth-child(3):hover::after {
    width: 25%;
}

/* Projects */
.nav-links a:nth-child(4):hover::after {
    width: 40%;
}

/* Education */
.nav-links a:nth-child(5):hover::after {
    width: 35%;
}

/* Skills */
.nav-links a:nth-child(6):hover::after {
    width: 50%;
}

/*  Typing Text Gradient Shine Effect */
#typing-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(70deg, #e6e6e6, #483789, #2563eb, #3a0988, #e6e6e6);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallicShine 4s infinite linear;
}

/* Metallic Shine Animation */
@keyframes metallicShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/*  Hero Name - Better Contrast with Existing Colors */
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #6a11cb, #2563eb, #3a0988);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s infinite linear;
}

/*  Shine Animation */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/*  Subtitle (Typing Text) - Using Theme Colors */
#typing-text {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(70deg, #6a11cb, #2563eb, #483789, #3a0988, #6a11cb);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallicShine 4s infinite linear;
}

/*  Social Icons - Matching Your Theme */
.social-links a {
    color: #483789;
    /* Purple shade to match your existing theme */
    font-size: 1.5rem;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/*  Icon Hover Effect */
.social-links a:hover {
    color: #2563eb;
    /* Blue hover effect */
    transform: scale(1.2);
}

/*  Glowing Send Message Button */
.contact-form button {
    background: linear-gradient(90deg, #2563eb, #483789);
    color: white;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    box-shadow: 0px 5px 15px rgba(72, 55, 137, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

/* Hover Effect */
.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 25px rgba(72, 55, 137, 0.5);
}

/*  Preloader Full-Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/*  Full-Screen Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Ensures it's above all elements */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/*  Preloader Full-Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/*  Loader Animation */
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid transparent;
    border-top: 5px solid #2563eb;
    /* Blue */
    border-right: 5px solid #483789;
    /* Purple */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/*  Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*  Hide Preloader (After Page Loads) */
.hidden {
    opacity: 0;
    visibility: hidden;
}

/*  Mission Loading Theme */
.loading-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    text-align: center;
    animation: fadeText 1.5s infinite alternate;
}

/* Scroll Reveal Effect */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/*  Repo & PyPI Stats Styling */
.repo-stats,
.pypi-stats {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/*  Smaller Google Colab & Jupyter Buttons */
.project-buttons {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.small-btn {
    display: inline-block;
    padding: 6px 6px;
    font-size: 0.85rem;
    font-weight: 200;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/*  Google Colab Button */
.colab-btn {
    background: linear-gradient(90deg, #ffcc00, #ff6600);
    box-shadow: 0px 2px 6px rgba(255, 102, 0, 0.3);
}

.colab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(255, 102, 0, 0.5);
}

/*  Jupyter Button */
.jupyter-btn {
    background: linear-gradient(90deg, #f37726, #fbbc05);
    box-shadow: 0px 2px 6px rgba(243, 119, 38, 0.3);
}

.jupyter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(243, 119, 38, 0.5);
}

/* new lines for template usage*/
.portfolio-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.portfolio-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* new time and greeting*/
.footer-greeting {
    display: flex;
    gap: 10px;
    /* Space between items */
    justify-content: center;
    align-items: center;
    font-size: 14px;
}