body {
    background-color: #f4f4f4;
    color: #333;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* margin-bottom: 20px; */
}

.social-links a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.project-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    color: #333;
    background-color: #f0f4f8;
}

/* ALL FONTS START */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* Modern, clean base */
}

h1 {
    font-size: 3.5rem;
    font-family: cursive;
    font-weight: 700;
    letter-spacing: 2px;
}


h2 {
    font-size: 2.5rem;
    font-family: cursive;
    font-weight: 600;
    letter-spacing: 1.5px;
}

h3 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif; /* Classic and Stylish */
    font-weight: 700;
}

p {
    font-size: 1.3em;
    font-family: 'Playfair Display', serif; /* Luxury serif */
    line-height: 1.8;
    color: #000000;
}

body {
    font-family: 'Poppins', sans-serif; /* Clean, modern feel */
    background-color: #f9f6f2;
    color: #222;
}

/* FONT STYLES END */


/* Header */
header {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
    padding: 10px 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-pic {
    border-radius: 8%;
    width: 500px;
    height: 300px;
    object-fit: cover;
    margin-top: 10px;
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

h1 {
    margin: 5px 0 5px;
}

p {
    margin-bottom: 5px;
}

.social-links a {
    color: white;
    margin: 0 15px;
    font-size: 1.8em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #18e455;
}

/* Main Sections */
section {
    padding: 20px 50px;
    margin: 20px auto;
    /* max-width: 1400px; */
    text-align: center;
}

h2 {
    /* margin-bottom: 30px; */
    color: #0077b6;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    width: 100px;
    height: 5px;
    background-color: #00b4d8;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
}

/*----------------------------------------------------------------------------*/
/* Skills */
.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
}

.skill-item {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    padding: 18px 28px;
    margin: 8px;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shiny Effect Pseudo-element */
.skill-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
}

/* Hover Effects */
.skill-item:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0077b6, #023e8a);
}

.skill-item:hover::after {
    animation: shine 0.75s;
}

/* Keyframes for the Shiny Animation */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
/*----------------------------------------------------------------------------*/

/* Experience and Projects */
.card {
    background-color: white;
    padding: 30px;
    margin: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: #0077b6;
    font-size: 1.7em;
    margin-bottom: 15px;
}

.card ul, .card p {
    font-size: 1.3em;
    font-family: 'Playfair Display', serif; /* Luxury serif */
    line-height: 1.8;
    color: #000000;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

#achievements .card {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.achievement {
    font-size: 1.2rem; /* Increased for better readability*/
    line-height: 1.7;
}

a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.experience-box {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;  /* Slightly reduced gap */
    padding: 5px;  /* Increased padding for better centering */
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    margin-bottom: 15px; /* Adds space below each experience box */

}

.experience-box span {
    padding: 4px 8px; /* Reduced padding for tighter layout */
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(31, 27, 27, 0.5); /* Slightly reduced shadow */
    transition: all 0.3s ease-in-out; /* Smooth transition effect */
}

/* Hover Effect */
.experience-box span:hover {
    transform: scale(1.05); /* Slightly enlarges the box */
    background-color: #124b84; /* Blue background */
    color: white; /* White text */
    box-shadow: 0 4px 12px rgba(46, 126, 173, 0.6); /* Increased shadow for a lifted effect */
}

#butterfly {
    position: fixed; /* Stays on screen even when scrolling */
    top: 0;
    left: 0;
    height: auto;
    transition: opacity 1s ease-in;
    opacity: 0; /* Start hidden */
    width: 80px; /* Adjust size as needed */
    z-index: 9999; /* High z-index ensures it stays on top */
    pointer-events: none; /* Optional: Allows clicks to pass through */
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #001F3F, #004466);
    padding: 8px 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    display: inline-block; /* Fixes the excessive width issue */
    margin: 10px auto; /* Centers the navbar */
}

/* Navigation List */
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Navbar Items */
.navbar ul li {
    display: inline;
}

/* Navbar Links */
.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    font-family: 'Playfair Display', serif; /* Luxury serif */
    line-height: 1.2;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
}

/* Hover Effects */
.navbar ul li a:hover {
    background: #00b4d8;
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(0, 180, 216, 0.4);
}



/*---------- Footer ----------*/
  .minimal-footer {
    background-color: #219ddb; /* Dark background for a sleek look */
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    text-align: center;
  }
  
  .minimal-footer p {
    margin: 0 0 10px; /* Space between the text and the button */
    font-size: 20px;
  }
  
  .back-to-top {
    padding: 8px 16px;
    background: none;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .back-to-top:hover {
    background: #fff;
    color: #333;
  }

/* Responsive Design */
@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1em;
    }

    header {
        padding: 15px 10px;
    }

    .profile-pic {
        width: 90%;
        height: auto;
        border-radius: 12px;
    }

    section {
        padding: 15px 20px;
    }

    .skills-grid {
        gap: 10px;
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .skill-item {
        font-size: 1em;
        padding: 14px 20px;
        width: 90%;
    }

    .card {
        margin: 15px 10px;
        padding: 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-box {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
    }

    .experience-box span {
        padding: 6px 10px;
        font-size: 14px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .navbar ul li a {
        padding: 10px 15px;
        width: 100%;
    }

    .minimal-footer p {
        font-size: 16px;
    }

    .back-to-top {
        font-size: 12px;
        padding: 6px 12px;
    }
}
