/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color-second);
    margin-left: 20px;  /* Adjust spacing as needed */
    /* Optionally, use flex properties if needed */
  }

/* Dark Mode Styles */
body.dark-mode {
    --body-color: #121212;
    --color-white: #1e1e1e;
    --text-color-second: #e0e0e0;
    --text-color-third: #ffffff;
    --first-color: #bb86fc;
    --first-color-hover: #985eff;
    --second-color: #03dac6;
    --third-color: #cf6679;
    --first-shadow-color: rgba(0, 0, 0, 0.7);
  }
    
/* Dark mode overrides for Contact section */
body.dark-mode .contact-section {
    background: var(--body-color); /* Uses dark mode body background (#121212) */
  }
  
  body.dark-mode .contact-form-container {
    background: var(--color-white); /* Darker background for the container (#1e1e1e) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }
  
  body.dark-mode .confirmation-box {
    background: var(--color-white);
    border-color: var(--first-color);
    color: var(--text-color-second);
  }

  /* Dark mode footer overrides */
body.dark-mode footer {
    background: #1e1e1e; /* A dark background for the footer */
    color: #e0e0e0;     /* Light text color */
  }
  
  body.dark-mode footer .top-footer p {
    color: #e0e0e0;
  }
  
  body.dark-mode footer .middle-footer .footer-menu a {
    color: #e0e0e0;
  }
  
  body.dark-mode footer .footer-social-icons a,
  body.dark-mode footer .footer-social-icons .icon i {
    color: #e0e0e0;
  }
  
  body.dark-mode footer .bottom-footer a {
    color: #e0e0e0;
  }

  body.dark-mode .nav-menu {
    background: rgba(30, 30, 30, 0.9); /* Darker background for responsive nav */
  }
    
  

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}

/* ---##-- REUSABLE CSS --##--- */


/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
    /* Added below so that button text from anchor tags won’t show an underline */
    text-decoration: none;
}
a.btn {
    text-decoration: none;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover>.blue-btn:hover{
    background: var(--first-color-hover);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}

/* Active nav link styling */
.nav-menu a.active-link {
    position: relative;
    color: var(--first-color); /* Purple color */
    transition: color 0.3s ease;
  }
  
  .nav-menu a.active-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px; /* Adjust vertical position if needed */
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--first-color);
    border-radius: 50%;
  }
  
  

.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}

/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 2em;
    gap: 20px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- REUSABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* Global .btn style (if you already have one, make sure it covers anchor tags) */
.btn {
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.4s;
    text-decoration: none;
    display: inline-block;
    color: #333;
}
.btn i {
    margin-left: 10px;
}
.btn:hover {
    background: #ddd;
}
/* ABOUT INFO BOX */
.about-info {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
  }
  
  .about-info p {
    text-align: center;
    font-size: 15px;
    color: #777;
  }
  
  

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ===== PROJECTS ===== */
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .project-box {
    width: 30%;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 20px;
    margin-bottom: 50px;
  
}
  
  .project-box i {
    font-size: 40px;
    color: var(--first-color);
    margin-bottom: 15px;
  }
  
  .project-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color-second);
  }
  
  .project-box p {
    font-size: 14px;
    color: var(--text-color-second);
  }
  
  /* Hover effect (if you want the slight jump on hover) */
  .project-box:hover {
    transform: translateY(-5px);
  }
  
  /* Animated/Visible state */
  .project-box.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .view-more {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 120px;

  }
  
  .view-more .btn {
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 25px;
    padding: 10px 20px;
  }
  
  .view-more .btn:hover {
    background: var(--first-color-hover);
  }
  
  /* ===== RESPONSIVE ===== */
  @media only screen and (max-width: 900px) {
    .project-box {
      width: 80%;
    }
  }
  
  @media only screen and (max-width: 540px) {
    .project-box {
      width: 100%;
    }
  }
  

/* --- CONTACT SECTION STYLING --- */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f9f9f9; /* Background color for contrast */
    padding: 2em;
  }
  
  .contact-wrapper {
    width: 100%;
    max-width: 800px;
    text-align: center;
  }
  
  .top-header {
    margin-bottom: 2em;
  }
  
  /* Form container with entrance and subtle floating animation */
  .contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: floatIn 1s ease-out forwards, float 3s ease-in-out infinite 1s;
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* Keyframes for the entrance animation */
  @keyframes floatIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Keyframes for continuous floating effect */
  @keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  }
  
  /* Improved input and textarea styling */
  .input-field,
  textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    margin-bottom: 15px;
  }
  
  .input-field:focus,
  textarea:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 10px rgba(110, 87, 224, 0.3);
  }
  
  /* Button styling */
  .btn {
    font-weight: 600;
    padding: 12px 30px;
    background: var(--first-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .btn:hover {
    background: var(--first-color-hover);
  }
  
  /* Confirmation message (notification) styling */
  .confirmation-box {
    position: relative;
    margin-top: 20px;
    padding: 20px 20px 20px 20px;
    background: #e6ffed;
    border: 1px solid #b4e7c3;
    border-radius: 8px;
    text-align: left;
    color: #2e7d32;
    animation: fadeIn 0.5s ease;
  }
  .confirmation-box .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #2e7d32;
  }
  .confirmation-box .message-content {
    margin-right: 30px;
  }
  
  /* Fade in keyframe */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  





  
/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}

/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        margin-left: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }
}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */
@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}

/* Dark mode footer overrides */
body.dark-mode footer {
    background: #1e1e1e;  /* Dark background */
    color: #e0e0e0;       /* Light text */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.7);  /* Add a top shadow */
  }
  
  body.dark-mode footer .top-footer p,
  body.dark-mode footer .middle-footer .footer-menu a,
  body.dark-mode footer .footer-social-icons a,
  body.dark-mode footer .footer-social-icons .icon i,
  body.dark-mode footer .bottom-footer a {
    color: #e0e0e0;
  }
  