/* GLOBAL FIXES */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Fuchsia Theme Colors */
.text-fuchsia {
    color: #D946EF !important;
}
.bg-fuchsia {
    background-color: #D946EF !important;
}
footer {
    overflow: hidden;
}

/* Fuchsia Buttons */
.btn-fuchsia,
.more-cert-btn {
    background: linear-gradient(90deg, #D946EF, #A855F7);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}
.btn-fuchsia:hover,
.more-cert-btn:hover {
    background: linear-gradient(90deg, #C026D3, #9333EA);
    box-shadow: 0 6px 16px rgba(217, 70, 239, 0.45);
}

/* Modern Button */
.btn-modern {
    display: inline-block;
    background: linear-gradient(135deg, #A855F7, #D946EF);
    color: #fff;
    font-weight: 500;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transition: all 0.6s ease;
}
.btn-modern:hover::before {
    left: 100%;
}
.btn-modern:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #9333EA, #C026D3);
}

/* Navbar */
.nav-gradient {
    background: linear-gradient(90deg, #0F172A, #1F1F38 50%, #3B185F);
}
.navbar-brand span {
    font-size: 1rem;
    white-space: nowrap;
}
.nav-link,
.dropdown-item {
    position: relative;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.nav-link:hover,
.dropdown-item:hover {
    background-color: rgba(217, 70, 239, 0.05);
    border-color: #D946EF;
    color: #D946EF !important;
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.3);
    transform: scale(1.03);
}
.nav-link.active,
.dropdown-item.active {
    background-color: rgba(217, 70, 239, 0.1);
    color: #D946EF !important;
    border-color: #D946EF;
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(31, 31, 56, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeSlideDown 0.3s ease forwards;
    transform-origin: top right;
}
@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.dropdown-menu .dropdown-item {
    color: #fff;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 50px;
}
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(217, 70, 239, 0.1);
    color: #D946EF !important;
    transform: translateX(4px);
    box-shadow: 0 0 8px rgba(217, 70, 239, 0.2);
}

/* Hero Section */
.hero-section {
    background-image: url('/images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: background-image 0.3s ease-in-out;
}
.hero-overlay {
    background: rgba(20, 20, 20, 0.4);
    position: absolute;
    inset: 0;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll !important;
    }
}

/* Hover Effects */
.hover-fuchsia:hover {
    color: #D946EF !important;
    transform: translateY(-6px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

/* Footer */
.footer-brand {
    color: #E5E7EB;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}
.footer-link {
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}
.footer-link:hover,
.footer-icon:hover {
    color: #D946EF !important;
    text-decoration: underline;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.timeline-icon img {
    width: 22px;
    height: 22px;
}
.timeline-item:hover .timeline-icon {
    background: #D946EF;
    border-color: #D946EF;
}
.timeline-content h5 {
    margin: 0;
    transition: color 0.3s ease;
}
.timeline-item:hover .timeline-content h5 {
    color: #D946EF;
}
.timeline-content .text-primary {
    color: #D946EF !important;
}
.text-muted {
    color: #6B7280 !important;
}
.timeline-content .more-cert-btn-wrapper {
    position: relative;
    margin-left: -40px;
    padding-left: 60px;
    margin-top: 1rem;
}
.timeline-content .more-cert-btn-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: #494949;
    transform: translateY(-50%);
    border-radius: 2px;
}

/* AOS Animation */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* Modal Timeline */
.modal-timeline {
    position: relative;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.modal-timeline::before {
    content: "";
    position: absolute;
    left: 30px; /* Line centered under dot */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #E5E7EB;
}
.modal-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px; /* Leaves space for line + dot */
}
.modal-timeline-item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 23px; /* 30 - 7 = center dot (14px) on 2px line */
    width: 14px;
    height: 14px;
    background-color: #fff;
    border: 2px solid #D946EF;
    border-radius: 50%;
    z-index: 2;
}
.modal-timeline-item h6 {
    margin: 0;
    font-weight: 600;
}
.modal-timeline-item .text-muted {
    font-size: 0.9rem;
}
.modal-timeline-item .text-primary {
    color: #D946EF !important;
}
.modal-timeline-item .text-secondary {
    font-size: 0.85rem;
    color: #6B7280;
}
.modal-timeline-item:hover {
    background-color: rgba(217, 70, 239, 0.04);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.modal-timeline-item:hover h6 {
    color: #D946EF;
}
.modal-timeline-item:hover::before {
    background-color: #D946EF;
    border-color: #D946EF;
}
/* Horizontal line between content and button */
.more-cert-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding-left: 0; /* remove left padding so button aligns properly */
    position: relative;
}

.more-cert-btn-wrapper .horizontal-line {
    display: block;
    width: 40px;
    height: 2px;
    background-color: #9CA3AF; /* Tailwind Gray-400 */
    margin-bottom: 0.75rem;
    border-radius: 2px;
    opacity: 0.8;
    transition: background-color 0.3s ease;
}

.timeline-item:hover .horizontal-line {
    background-color: #D946EF;
}


.timeline-item:hover .more-cert-btn {
    transform: scale(1.03);
    box-shadow: 0 0 8px rgba(217, 70, 239, 0.25);
}
/* Contact Form */
#contact input,
#contact textarea,
#contact select {
    border-radius: 0.5rem;
    background-color: #fff;
}
#contact .card {
    background-color: #F3F4F6 !important;
    border-radius: 1rem;
    padding: 2rem;
}
#contact h2 {
    color: #1F2937;
}

/* Divider */
.custom-divider {
    border: none;
    height: 2px;
    width: 75%;
    background-color: #000;
    margin: 4rem auto;
    opacity: 1;
}

/* Skills Progress Bars */
.skill-bar {
    width: 0%;
    transition: width 1.5s ease-in-out;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #D946EF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}
.scroll-to-top:hover {
    background-color: #A855F7;
}

/* Cookie Bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #0F172A;
    color: #fff;
    padding: 15px;
    z-index: 9999;
    display: none;
}