@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #111;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.5s ease;
}

.resume_wrapper {
    display: flex;
    width: 850px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.resume_wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.resume_left {
    width: 35%;
    background: #000;
    color: #e0e0e0;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.resume_left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(237, 27, 118, 0.15), transparent);
    transition: all 0.3s ease;
}

.resume_left:hover::before {
    transform: scale(1.1);
}

.resume_left .resume_image {
    width: 100%;
    border-bottom: 4px solid #ed1b76;
    position: relative;
    overflow: hidden;
}

.resume_left .resume_image img {
    width: 100%;
    display: block;
}

.resume_title {
    color: #ed1b76 !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.resume_title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ed1b76;
    transition: width 0.3s ease;
}

.resume_title:hover::after {
    width: 100%;
}

.resume_left .resume_info {
    color: #331818;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.resume_left .resume_bottom {
    padding: 20px;
}

.resume_item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.resume_item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.resume_item:last-child {
    border-bottom: none;
}

.resume_namerole .name {
    font-size: 24px;
    color: #e0e0e0;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.resume_namerole .role {
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.resume_contact .resume_info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.resume_contact .resume_info p i {
    color: #ed1b76;
    transition: all 0.3s ease;
}

.resume_contact .resume_info p:hover i {
    transform: scale(1.2);
}

.resume_skills .skills_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume_skills .skills_list p {
    font-weight: 500;
    text-transform: uppercase;
}

.resume_skills .skills_bar {
    background: #333;
    height: 10px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.resume_skills .skills_bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ed1b76, #333);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.resume_skills .skills_bar span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

/* Right Side Styling */
.resume_right {
    width: 65%;
    padding: 30px;
    color: #e0e0e0;
    background: #181818;
    transition: all 0.3s ease;
}

.resume_right .resume_namerole .name {
    font-size: 28px;
    color: #222;
    transition: all 0.3s ease;
}

.resume_right .resume_namerole .role {
    font-size: 14px;
    text-transform: uppercase;
    color: #555;
    transition: all 0.3s ease;
}

.resume_right .resume_title {
    color: #ed1b76 !important;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ed1b76;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.resume_data {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
}

.resume_data .year {
    color: #ed1b76;
    font-weight: 700;
    width: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.resume_data .year::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #ed1b76;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.resume_data .year::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 15px;
    width: 2px;
    height: 100%;
    background: #ed1b76;
    transition: all 0.3s ease;
}

.resume_data:last-child .year::after {
    display: none;
}

.ActiveS {
    color: rgb(3, 168, 66);
    font-size: x-small;
    animation: pulse 2s infinite;
}

/* Enhanced Button */
.resume_next {
    text-align: center;
    margin-top: 20px;
}

.resume_next button {
    background: linear-gradient(120deg, #ed1b76, #333);
    color: #e0e0e0;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.resume_next button:hover {
    background: linear-gradient(120deg, #ed1b76, #111);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Certificates Buttons */
.resume_left .resume_bottom .resume_certificates button,
.resume_left .resume_bottom .resume_contact .resume_info button,
.resume_left .resume_bottom .resume_skills .skills_bar button,
button.certificate-btn,
button.certificate-button {
    background: #ed1b76 !important;
    color: #e0e0e0 !important;
    border: none !important;
    transition: background 0.3s;
}

.resume_left .resume_bottom .resume_certificates button:hover,
.resume_left .resume_bottom .resume_contact .resume_info button:hover,
.resume_left .resume_bottom .resume_skills .skills_bar button:hover,
button.certificate-btn:hover,
button.certificate-button:hover {
    background: #b11356 !important;
}

/* Responsive Design */
@media screen and (max-width: 850px) {
    .resume_wrapper {
        flex-direction: column;
        width: 95%;
    }
    .resume_left,
    .resume_right {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .resume_right {
        padding: 20px;
    }
    .resume_data {
        flex-direction: column;
    }
    .resume_data .year {
        width: 100%;
    }
    .resume_data .year::before,
    .resume_data .year::after {
        display: none;
    }
}

/* Credentials Container */
.credentials-container {
    background: linear-gradient(135deg, #ffffff, #f9f9f9); /* Soft gradient background */
    padding: 20px;
    color: rgb(0, 0, 0);
    border-radius: 15px; /* Smooth rounded edges */
    border: 1px solid #ccc; /* Light, clean border */
    width: 90%;
    max-width: 450px; /* Slightly wider for better readability */
    text-align: left;
    position: sticky;
    top: 10px;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Elevation Effect */
.credentials-container:hover {
    box-shadow: 0px 8px 15px rgba(90, 42, 42, 0.15); /* Subtle depth effect */
    transform: translateY(-3px); /* Slight lift effect */
}

/* Dropdown Button */
.dropdown-btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: bold;
    background: linear-gradient(135deg, #404346, #ed1b76); /* Modern button gradient */
    color: rgb(58, 54, 54);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Icon Rotation Effect */
.dropdown-btn i {
    transition: transform 0.3s ease-in-out;
}

/* Rotate icon when dropdown is open */
.dropdown-btn.active i {
    transform: rotate(180deg);
}

/* Button Hover */
.dropdown-btn:hover {
    background: linear-gradient(135deg, #1e87d3, #ed1b76);
    transform: scale(1.02); /* Slightly enlarges on hover */
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    background: #ffffff;
    padding: 15px;
    color: black;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ed1b76;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 220px;
    transition: all 0.3s ease-in-out;
}

/* Show Dropdown */
.show {
    display: block !important;
}

/* Individual Credentials Styling */
.dropdown-content p {
    font-size: 14.5px;
    color: #000000;
    padding: 8px;
    background: #2e2c2c;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hover Effect on Credentials */
.dropdown-content p:hover {
    background: #2c2424;
    transform: translateX(5px); /* Slight move on hover */
}

/* Responsive Design */
@media (max-width: 600px) {
    .credentials-container {
        width: 100%;
        padding: 15px;
    }

    .dropdown-btn {
        font-size: 15px;
        padding: 12px;
    }

    .dropdown-content {
        max-height: 180px;
    }
}




/* For Certificate */
.toggle-btn {
    padding: 10px;
    background-color: #ed1b76 !important;
    color: #ed1b76 !important;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin: 5px 0;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: #b11356 !important;
}

/* Certificate Dropdown - Sticky */
.certificate-container {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: rgba(66, 60, 60, 0.98);
    position: sticky; /* Keeps it visible while scrolling */
    top: 20px; /* Adjust to stick at the top */
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* Prevents overflow */
    overflow-y: auto; /* Enables vertical scrolling */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: fadeIn 0.4s ease-in-out;
}

/* Show certificates */
.certificate-container:not(.hidden) {
    display: block;
}

/* Scrollbar Styling */
.certificate-container::-webkit-scrollbar {
    width: 8px;
}

.certificate-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.certificate-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.certificate-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Close Button (X) */
.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #ff0000;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-btn:hover {
    color: #cc0000;
}

/* Certificate Images */
.certificate-container img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 10px auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click Effect on Images */
.certificate-container img:active {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Fade-in effect for dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide class */
.hidden {
    display: none;
}

/* Fullscreen Modal for Image */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Modal Content */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificate-container {
        width: 95%;
        max-width: 90%;
        max-height: 70vh; /* Adjust height for mobile */
    }

    .toggle-btn {
        font-size: 14px;
        padding: 8px;
    }

    .certificate-container img {
        max-width: 90%;
    }
}

.resume_left, .resume_left * {
    color: #e0e0e0 !important;
}

.resume_left .resume_info, .resume_left .resume_namerole .role, .resume_left .resume_bottom, .resume_left .resume_item {
    color: #e0e0e0 !important;
}

.resume_right, .resume_right * {
    color: #e0e0e0 !important;
    opacity: 1 !important;
}

.resume_right .resume_namerole .role, .resume_right .resume_info, .resume_right .resume_data .year {
    color: #e0e0e0 !important;
}

.resume_title, .resume_right .resume_title {
    color: #ed1b76 !important;
}

.resume_next button, .resume_next button * {
    color: #e0e0e0 !important;
}


/*---PRINT PART---*/

#printButton {
      color:#707070;
      background-color: #3a3939;
      font-size: small;
}

:hover #printButton {
      background-color: #3a3939;
      color: #fff;
}

@media (max-width: 600px) {
  #printButton {
    display: none !important;
  }
}

@media print {
    html, body {
      width: 216mm;
      height: 356mm;
      margin: 0 !important;
      padding: 0 !important;
      background: #181818 !important;
      color: #fff !important;
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
      box-sizing: border-box;
    }
    #printButton {
      display: none !important;
    }
    .resume_wrapper {
      width: 100vw !important;
      max-width: 200mm !important;
      min-height: 336mm !important;
      margin: 0 auto !important;
      box-shadow: none !important;
      border: none !important;
      background: #181818 !important;
      color: #fff !important;
      page-break-inside: avoid !important;
      display: flex !important;
      flex-direction: row !important;
    }
    .resume_left, .resume_right {
      background: #181818 !important;
      color: #fff !important;
    }
    /* Fix for colored bars and buttons */
    .skills_bar span,
    .toggle-btn,
    .dropdown-btn,
    .certificate-container {
      background: #ff4081 !important;
      color: #fff !important;
    }
    /* Remove default print header/footer */
    @page {
      size: Legal;
      margin: 0;
    }
    body::after, body::before {
      display: none !important;
    }
  }