/* ============================================
   Modern Blue & White Business CV Design
   ============================================ */

/* Animated Blue Gradient Background */
body {
    background: linear-gradient(-45deg, #3b82f6, #2563eb, #60a5fa, #93c5fd);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Floating particles background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Glass Navigation */
.navbar {
    background: #f5f0ff !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.1);
}

.navbar-toggler-icon,
.navbar .navbar-toggler-icon,
.navbar-dark .navbar-toggler-icon,
.navbar-light .navbar-toggler-icon,
.bg-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile View - Ensure Black Icon */
@media (max-width: 991.98px) {

    .navbar-toggler-icon,
    .navbar .navbar-toggler-icon,
    .navbar-dark .navbar-toggler-icon,
    .navbar-light .navbar-toggler-icon,
    .bg-navbar .navbar-toggler-icon,
    .navbar-expand-lg .navbar-toggler-icon,
    .navbar-expand-md .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

.navbar-brand {
    color: #3b82f6 !important;
    font-weight: 700;
    font-size: 22px;
}

.navbar-brand i {
    color: #3b82f6 !important;
}

/* Main Wrapper */
.main-wraper {
    position: relative;
    z-index: 1;
}

/* Profile Section */
.bg-profile {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bg-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.zoo-profile {
    position: relative;
    z-index: 2;
}

/* Profile container with particles - keeping original styling */
.zoo-profile .container {
    position: relative;
    overflow: hidden;
}

.zoo-profile .container>.row {
    position: relative;
    z-index: 1;
}

/* Floating particles for profile container */
.zoo-profile .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 15%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 45% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 18%),
        radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.11) 0%, transparent 16%),
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.09) 0%, transparent 14%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.07) 0%, transparent 12%);
    background-size: 300% 300%;
    animation: profileParticles 25s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes profileParticles {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%, 75% 25%, 60% 40%;
        opacity: 1;
    }

    20% {
        background-position: 25% 15%, 85% 90%, 55% 45%, 20% 85%, 80% 15%, 65% 35%;
        opacity: 0.85;
    }

    40% {
        background-position: 50% 30%, 70% 80%, 60% 40%, 35% 65%, 65% 35%, 70% 30%;
        opacity: 1;
    }

    60% {
        background-position: 75% 45%, 55% 70%, 65% 55%, 40% 60%, 70% 40%, 55% 45%;
        opacity: 0.9;
    }

    80% {
        background-position: 15% 60%, 90% 60%, 40% 30%, 60% 50%, 50% 60%, 45% 55%;
        opacity: 0.85;
    }
}

.zoo-profile-main-pic img {
    border: 6px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 180px;
    height: 180px;
}

.zoo-user-name {
    color: white;
    font-weight: 700;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cd-headline .cd-words-wrapper b {
    color: white;
    font-weight: 500;
    font-size: 20px;
}

/* Personal Detail in Header */
.personal-detail {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 180px;
}

.personal-detail li {
    color: white;
    margin-bottom: 12px;
    font-size: 16px;
    text-align: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.personal-detail li:last-child {
    margin-bottom: 0;
}

.personal-detail li i {
    color: white;
    margin-right: 10px;
    font-size: 20px;
}

.personal-detail li b {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 10px;
}

.personal-detail li span {
    color: white;
}

/* Social Icons */
.social-icon {
    text-align: right;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.social-icon a {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 2px solid white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon a:hover {
    background: white !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.social-icon a i {
    color: white;
    font-size: 18px;
}

.social-icon a:hover i {
    color: #3b82f6;
}

/* Particles.js Canvas - Flying Animation Support */
.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    pointer-events: none;
}

#header {
    position: relative;
}

/* Section Styling */
.section-md {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 30px;
    border-radius: 30px;
    padding: 60px 0;
    box-shadow: 0 10px 50px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Floating particles animation for sections */
.section-md::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.07) 0%, transparent 20%),
        radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 20%);
    background-size: 200% 200%;
    animation: floatingParticles 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatingParticles {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 30% 70%, 70% 30%;
        opacity: 1;
    }

    25% {
        background-position: 30% 20%, 80% 90%, 60% 40%, 20% 80%, 80% 20%;
        opacity: 0.8;
    }

    50% {
        background-position: 60% 40%, 60% 80%, 70% 60%, 40% 60%, 60% 40%;
        opacity: 1;
    }

    75% {
        background-position: 20% 60%, 90% 70%, 40% 30%, 60% 50%, 50% 60%;
        opacity: 0.8;
    }
}

/* Modern Card Container for Sections with Animation */
.section-md .container {
    background: transparent;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-md .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-md .container:hover::before {
    transform: scaleX(1);
}

.section-md .container:hover {
    transform: translateY(-8px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add stagger animation delay for each section */
.section-md:nth-child(1) .container {
    animation-delay: 0.1s;
}

.section-md:nth-child(2) .container {
    animation-delay: 0.2s;
}

.section-md:nth-child(3) .container {
    animation-delay: 0.3s;
}

.section-md:nth-child(4) .container {
    animation-delay: 0.4s;
}

.section-md:nth-child(5) .container {
    animation-delay: 0.5s;
}

.header-title {
    color: #3b82f6;
    font-weight: 700;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

/* About Description */
.about-description {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

/* Personal Detail Info */
.personal-detail-title {
    color: #3b82f6;
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
}

.personal-detail-info {
    color: #333;
    font-weight: 500;
}

/* Buttons */
.btn-soft-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-soft-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
    border: none;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Resume Icons */
.resume-icon {
    text-align: center;
    margin-bottom: 30px;
}

.resume-icon i {
    font-size: 50px;
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.resume-icon h5 {
    color: #333;
    font-weight: 700;
    margin-top: 15px;
}

/* Timeline */
.timeline .time-item {
    background: rgba(59, 130, 246, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.timeline .time-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
}

.timeline .font-14 {
    color: #3b82f6;
    font-weight: 600;
}

.timeline .text-dark {
    color: #333 !important;
    font-weight: 700;
}

/* Skills Progress Bar */
.skills .skill-box {
    margin-bottom: 30px;
}

.skill-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-line {
    background: rgba(59, 130, 246, 0.1);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-line span {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    height: 100%;
    display: block;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.percent-tooltip {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 700;
    font-size: 11px;
}

/* Reference Cards */
.reference-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.reference-icon i {
    font-size: 60px;
    color: #3b82f6;
}

.reference-name {
    color: #333;
    font-weight: 700;
    margin: 15px 0 5px;
}

.reference-title {
    color: #3b82f6;
    font-size: 14px;
    margin-bottom: 15px;
}

.reference-contact p {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

/* Slider Buttons */
.slider-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.slider-btn:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: rgba(59, 130, 246, 0.05);
    padding: 30px;
    border-radius: 20px;
}

.contact-info {
    background: rgba(59, 130, 246, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.contact-info .icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.contact-info .icon i {
    color: white;
    font-size: 24px;
}

.contact-info h5 {
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info span {
    color: #333;
    font-weight: 500;
}

.form-control {
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Footer */
.footer-area {
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    margin: 30px;
    border-radius: 20px;
}

.copyright {
    color: white !important;
}

/* Thanks Text */
.thanks-text {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
}

.thanks-text h3 {
    color: #3b82f6;
    font-weight: 700;
}

/* Video Section */
.video-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    background: #000;
}

.video-container video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* Profile Lightbox */
.profile-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #93c5fd;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-md {
        margin: 15px;
        padding: 30px 0;
    }

    .zoo-user-name {
        font-size: 24px;
    }

    .header-title {
        font-size: 22px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    /* Profile Section Mobile */
    .bg-profile {
        padding: 40px 0 !important;
    }

    .zoo-profile-main-pic img {
        width: 120px !important;
        height: 120px !important;
    }

    .personal-detail {
        text-align: center !important;
        align-items: center !important;
        min-height: auto !important;
        margin-top: 20px;
    }

    .personal-detail li {
        text-align: center !important;
        justify-content: center !important;
    }

    .social-icon {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Section Cards Mobile */
    .section-md .container {
        padding: 20px 15px !important;
    }

    /* Timeline Mobile */
    .timeline .time-item {
        padding: 15px !important;
    }

    /* Skills Mobile */
    .skill-title {
        font-size: 14px !important;
    }

    /* Reference Cards Mobile */
    .reference-card {
        padding: 20px !important;
        margin-bottom: 20px;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: 20px !important;
    }

    .contact-info {
        padding: 15px !important;
    }

    /* Buttons Mobile */
    .btn-soft-primary,
    .btn-primary {
        padding: 10px 20px !important;
        font-size: 14px !important;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Resume Icons Mobile */
    .resume-icon i {
        width: 70px !important;
        height: 70px !important;
        line-height: 70px !important;
        font-size: 40px !important;
    }
}

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .zoo-user-name {
        font-size: 20px !important;
    }

    .cd-headline .cd-words-wrapper b {
        font-size: 16px !important;
    }

    .header-title {
        font-size: 20px !important;
    }

    .section-md {
        margin: 10px !important;
        padding: 20px 0 !important;
        border-radius: 15px !important;
    }

    .section-md .container {
        padding: 15px 10px !important;
    }

    .about-description {
        font-size: 14px !important;
    }

    .personal-detail-title {
        min-width: 100px !important;
        font-size: 14px !important;
    }

    .personal-detail-info {
        font-size: 14px !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }

    .section-md {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}