@font-face {
    font-family: 'Tomatoes';
    src: url('./fonts/Tomatoes-O8L8.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(45deg, #24006b, #f42f8c);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 1.6;
    line-height: 1.6;
}

.custom-link {
  color: white;
  text-decoration: none;
}

/* === Responsive Menu === */
.menu-responsive {
  display: flex;
}

.menu-responsive ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 155px;
  background-color: #0c2d48;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.menu-responsive ul li {
  padding: 1rem 0;
  text-align: center;
}

.menu-responsive ul li a.scroll {
  display: block;
  padding: 12px 15px;
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s, color 0.3s;
}

.menu-responsive nav ul li a.scroll:hover,
.menu-responsive nav ul li a.scroll:active {
  background-color: #145da0;
  color: white;
  border-radius: 4px;
}

.menu-responsive ul li a.scroll.active {
  background-color: #555;
  color: white;
}

/* == Main Content Styling Start from here == */
.main-content {
    margin-left: 155px;
    padding: 2rem;
    padding-bottom: 0;
    background-color: #b1d4e0;
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .menu-responsive {
    display: none;
  }
}

.bold {
    font-weight: 700;
    font-family: 'Tomatoes', cursive;
}

h2 {
    text-transform: uppercase;
    font-weight: 700;
}

/* == Header Styling == */
header {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-bottom: 70px;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://img.freepik.com/free-photo/view-arrangement-with-keyboard-notebooks_23-2148847749.jpg?semt=ais_hybrid&w=740') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
}

header * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin-bottom: 30px;
}

@keyframes zoomBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-20px);
    }

    75% {
        transform: translateY(-10px);
    }
}

.header__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1rem 0 0.5rem 0;
    animation: zoomBounce 1s ease-out forwards;
}

.header__top-brand {
    color: white;
    margin-bottom: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease;
}

.header__top-brand:hover {
    transform: scale(1.05);
}

.header__top-brand h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    padding-bottom: 0.2rem;
    animation: popIn 1.2s ease-out forwards;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.header__top-brand h1:hover {
    color: #75e6da;
    text-shadow: 0 0 8px #75e6da, 0 0 16px #75e6da;
}

.header__links {
    margin-top: 0.2rem;
}

.header__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.header__links ul li {
    display: inline-block;
}

.header__links a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0c2d48;
    color: white;
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.header__links a::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #75e6da;
    z-index: 0;
    transition: all 0.4s ease;
}

.header__links a:hover::after {
    top: 0;
}

.header__links a:hover {
    color: #0c2d48;
    border: 2px solid #fff;
    box-shadow: 0 0 20px #75e6da;
}

.header__links a i {
    z-index: 2;
    position: relative;
    background: transparent;
    transition: color 0.3s ease;
}

.header__links a:hover i {
    color: #0c2d48;
}

.header__links a.one::after {
    background-color: #0072b1;
}

.header__links a.two::after {
    background-color: #504f4f;
}

.header__links a.three::after {
    background-color: rgb(236, 58, 58);
}

.header__content {
    width: 75%;
    margin: 0 auto;
    color: #fff;
    font-size: 1.6rem;
    text-align: center;
}

.header__content p {
    margin-bottom: 30px;
    line-height: 2rem;
}

.header__content a.btn-scroll {
    color: #000c66;
    transition: color 0.3s ease;
}

.header__content a.btn-scroll:hover {
    color: white;
    background-color: #75e6da;
    border-radius: 5px;
}

.header__arrow {
    margin-top: 2rem;
    text-align: center;
}

.header__arrow a {
    color: #fff;
    font-size: 1.3rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@media (min-width: 47.9rem) {
    .header__top {
        padding-top: 2rem;
        margin-bottom: 4rem;
    }

    .header__content {
        font-size: 1.8rem;
    }
}

@media (min-width: 61.9rem) {
    .header__top {
        margin-bottom: 6rem;
    }

    .header__content {
        font-size: 2rem;
    }
}

@media (min-width: 74.9rem) {
    .header__top {
        margin-bottom: 7rem;
    }

    .header__content {
        font-size: 2.2rem;
    }

    .header__links {
        margin-top: -15px;
    }
}

/* == About Section == */
#about {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
    color: #fff; 
    overflow: hidden;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/PRODIGY_WD_04/Data/about_bg.jpg') center/cover no-repeat;
    opacity: 0.4; 
    z-index: -1;
}

#about h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0c2d48;
    text-align: center;
    text-decoration: underline;
}

#about img {
    border-radius: 50%;
    margin-bottom: 15px;
}

#about .lead {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000c66;
}

#about p {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.6;
    max-width: 800px;
    margin: 10px auto;
}

#about p strong {
    color: #05445e;
}

#about .bold {
    font-weight: bold;
    color: #000c66;
}

#about .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#about .col-lg-6 {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: left;
}

#about ul {
    list-style: none;
    padding: 0;
}

#about ul li {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#about ul li strong {
    font-weight: bold;
    color: #000c66;
}

#about ul li a {
    color: #000;
    text-decoration: none;
}

#about ul li a:hover {
    text-decoration: underline;
}

/* Interests Section */
#about .interest-container h3 {
    margin-top: 40px;
    font-size: 1.8rem;
    color: #0c2d48;
    text-align: center;
}

#about .interest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#about .icon-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

#about .icon-box:hover {
    transform: translateY(-5px);
}

#about .icon-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

#about .icon-box h3 {
    font-size: 1.2rem;
    color: #333;
}

@media (max-width: 768px) {
    .interest-grid {
        grid-template-columns: 1fr;
    }

    #about h2 {
        font-size: 1.7rem;
    }

    #about .lead {
        font-size: 1.3rem;
    }

    #about p {
        font-size: 1rem;
    }

    #about {
        width: 95%;
    }
}

@media (min-width: 768px) {
    #about {
        width: 85%;
    }

    #about h2 {
        font-size: 1.8rem;
    }

    #about .lead {
        font-size: 1.5rem;
    }

    #about p {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    #about {
        width: 75%;
    }

    #about h2 {
        font-size: 2rem;
    }

    #about .lead {
        font-size: 1.6rem;
    }

    #about p {
        font-size: 1.35rem;
    }
}

@media (min-width: 1200px) {
    #about {
        width: 100%;
        max-width: 1400px;
    }

    #about h2 {
        font-size: 2.2rem;
    }

    #about .lead {
        font-size: 1.75rem;
    }

    #about p {
        font-size: 1.4rem;
    }
}

/* == Education Section Styling == */
#education {
    position: relative;
    padding: 40px 0;
    text-align: center;
    animation: fadeUp 1s ease-out both;
    z-index: 1;
    overflow: hidden;
    color: #fff;
}

#education::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/PRODIGY_WD_04/Data/education_bg.jpg') center/cover no-repeat;
    opacity: 0.4; 
    z-index: -1;
}

#education .education-container {
    width: 80%;
    margin: auto;
}

#education h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0c2d48;
    margin-bottom: 20px;
    text-decoration: underline;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
    animation-delay: 0.2s;
}

#education .education-grid {
    background: #2e8bc0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 10px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#education .education-grid:nth-child(1) {
    animation-delay: 0.4s;
}

#education .education-grid:nth-child(2) {
    animation-delay: 0.6s;
}

#education .education-grid:nth-child(3) {
    animation-delay: 0.8s;
}

#education .education-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

#education .education-grid p {
    font-size: 1.1rem;
    color: white;
    margin: 5px 0;
    transition: color 0.3s ease;
}

#education .card-title a {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

#education .card-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

#education ul {
    padding-left: 20px;
}

#education ul li {
    list-style-type: disc;
    color: white;
}

#education .col-lg-6 {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

@media (max-width: 768px) {
    .col-lg-6 {
        width: 100%;
    }
}

@keyframes fadeUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Certificate Section */
.certification {
    text-align: center;
    margin-bottom: 20px;
}

.certification h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.certification-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    position: relative;
}

.certification-card {
    max-width: 250px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-grid-img {
    position: relative;
    overflow: hidden;
}

.certification-grid-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.certificate-info {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 116, 240, 0.8);
    color: #fff;
    text-shadow: 2px 2px #000c66;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.certification-card:hover .certificate-info {
    opacity: 0.6;
    visibility: visible;
}

.certificate-link {
    margin-top: 10px;
}

.certificate-link a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease-in-out;
}

.certificate-link a:hover {
    color: #000c66;
}

/* == Skills Section Styling == */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#skills {
    background-color: #0c2d48;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    animation: fadeSlideIn 1s ease forwards;
}

#skills .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeSlideIn 1.2s ease forwards;
}

#skills h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #75e6da;
    text-decoration: underline;
    opacity: 0;
    animation: fadeSlideIn 1.3s ease forwards;
    animation-delay: 0.2s;
}

#skills h2 {
    font-size: 1.5rem;
    color: #75e6da;
    margin: 30px 0 15px;
    text-align: center;
    opacity: 0;
    animation: fadeSlideIn 1.4s ease forwards;
    animation-delay: 0.4s;
}

#skills .row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#skills .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

#skills ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

#skills ul li {
    display: flex;
    align-items: center;
    background: #e9ecef;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background 0.3s ease-in-out, transform 0.3s ease;
    white-space: nowrap;
    opacity: 0;
    animation: fadeSlideIn 0.5s ease forwards;
}

#skills ul li:hover {
    background: #c1c3c6;
    transform: scale(1.05);
}

#skills .skill-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    #skills .row {
        flex-direction: column;
        align-items: center;
    }

    #skills ul {
        flex-direction: column;
        align-items: center;
    }

    #skills ul li {
        width: 100%;
        justify-content: center;
    }
}

/* Project Section Styling */
#project {
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

#project h2 {
    color: #000c66;
    font-size: 3rem;
    margin-bottom: 40px;
}

/* Container Grid Layout */
.project-container {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.5s ease;
    height: 370px;
}

.project-card:hover {
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.project-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px 0 0 15px;
}

.project-image i {
    position: absolute;
    top: 50%;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
    cursor: pointer;
    z-index: 2;
}

.project-image i.fa-github {
    left: 60%;
}

.project-image i.fa-circle-info {
    left: 40%;
}

.project-image i:hover {
    background: #ffc107;
    color: #000;
}

.project-content {
    position: absolute;
    bottom: -60%;
    left: 0;
    width: 100%;
    height: auto;
    padding: 20px;
    background-color: rgb(255, 255, 255, 0.7);
    color: #000;
    transition: bottom 0.5s ease;
    z-index: 3;
}

.project-card:hover .project-content {
    bottom: 0;
}

.project-content.show {
    max-height: 1000px;
    opacity: 1;
    padding: 20px 25px;
}

.project-content h4 {
    font-size: 21px;
    margin-bottom: 10px;
    color: #0c2d48;
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.project-content a {
    position: absolute;
    padding: 5px;
    border: none;
    border-radius: 30px;
    top: 10px;
    right: 20px;
    font-size: 1.2rem;
    color: #000;
    transition: color 0.3s ease;
}

.project-content a:hover {
    color: #000c66;
    background-color: #fff;
    border: 1px solid #000c66;
}

@media (max-width: 768px) {
    .project-card {
        height: auto;
        flex-direction: column;
    }

    .project-image {
        height: 250px;
    }

    .project-content {
        position: relative;
        bottom: 0;
    }

    .project-card:hover .project-content {
        bottom: 0;
    }
}

/* == Contact Section Styles == */
#contact {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background-color: #0c2d48;
    color: #fff;
    overflow: hidden;
    animation: fadeUp 1s ease-out both;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0c2d48; 
    padding: 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.contact-container:hover {
    transform: scale(1.02);
}

.col-md-6, .col-md-6-text-center {
    flex: 1 1 400px;
    padding: 20px;
    animation: slideIn 1.2s ease-out both;
}

.col-md-6-text-center ul {
    list-style: none;
    padding: 0;
}

.col-md-6-text-center ul li {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.col-md-6-text-center ul li:hover {
    transform: translateY(-5px);
}

.col-md-6-text-center i {
    font-size: 24px;
    margin-right: 10px;
}
.col-md-6-text-center a {
    color: #fff;
}

.col-md-6-text-center a:hover {
    color: #4ed0d5;
    font-size: 20px;
}

form {
    text-align: left;
}

.form-label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 10px #4ed0d5;
}

.submit-wrapper {
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    background-color: #0072b1;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #000c66;
    transform: translateY(-3px);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

/* == Footer Styling == */
footer {
    background-color: #b1d4e0;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #0c2d48;
    border-top: 1px solid #ddd;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer i.fa-heart {
    color: red;
    margin: 0 5px;
    animation: pulse 1.5s infinite;
}

footer i {
    margin: 0 3px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Style for "Top" button */
#myBtn {
    display: inline-block;
    border: none;
    outline: none;
    background: none;
    color: #000c66;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#myBtn:hover {
    color: #4b0082;
    padding: 5px;
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
}
