/* /* General Styling */
html {
    scroll-padding-top: 70px; /* Adjust this value to match your navbar height */
  }

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(90deg, #333, #414547);
}

body:hover {
    opacity: 0.9;
}

h1,
h2,
h4,
p {
    color: white;
}

/* Navigation */
.navbar {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-rotate-in {
    animation: rotateIn 0.6s ease-out;
}

/* Smooth Transitions */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3) !important;
}

/* Enhanced Button Animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
}

.btn-warning:hover {
    color: #000 !important;
}

.btn-outline-light:hover {
    color: #000 !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Profile Image Animation */
.profile-animate {
    animation: fadeInUp 0.8s ease-out, float 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Text Animation */
.text-animate {
    animation: slideInLeft 0.6s ease-out;
}

/* Icon Animation */
.icon-lg {
    transition: all 0.3s ease;
}

.card:hover .icon-lg {
    animation: pulse 0.6s ease-in-out;
    transform: scale(1.1);
}

/* Timeline Animation */
.timeline-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Header */


/* Intro */

/* Sections */
section {
    padding: 40px 30px;
}

/* Timeline Styling */
.timeline {
    border-left: 3px solid #007bff;
    margin-left: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item .date {
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease;
}

.timeline-item:hover .date {
    color: #ffc107;
}

.timeline-item h4 {
    color: #007bff;
    transition: color 0.3s ease;
}

.timeline-item:hover h4 {
    color: #ffc107;
}

.timeline-item p {
    margin-top: 10px;
    color: white;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.timeline-item:hover:before {
    background-color: #ffc107;
    box-shadow: 0 0 10px 3px rgba(255, 193, 7, 0.5);
    transform: scale(1.2);
}

/* Experience Items Hover Effects */
#experience .mb-5 {
    transition: all 0.3s ease;
    padding: 15px 0;
    border-left: 4px solid transparent;
    padding-left: 15px;
    margin-left: 0;
}

#experience .mb-5:hover {
    border-left-color: #ffc107;
    padding-left: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.2);
}

#experience .mb-5 .date {
    transition: all 0.3s ease;
    color: #ffc107 !important;
}

#experience .mb-5:hover .date {
    font-weight: bold;
    letter-spacing: 0.5px;
}

#experience .mb-5 h4 {
    transition: all 0.3s ease;
    color: #007bff !important;
}

#experience .mb-5:hover h4 {
    color: #ffc107 !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

#experience .mb-5 ul li {
    transition: all 0.3s ease;
    color: #ddd;
}

#experience .mb-5:hover ul li {
    color: #fff;
    margin-left: 8px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 10px 0;
}

.text-justify {
    text-align: justify;
}

/* Custom styles for images */
.project-img {
    width: 400px; 
    height: 350px; 
    object-fit: cover; 
    margin-right: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.project-img:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.profile {
    width: 400px; 
    height: 350px; 
    object-fit: cover;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.profile:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.profile-lug {
    width: 400px; 
    height: 350px; 
    object-fit: cover;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.profile-lug:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

/* Section Animations */
section {
    animation: fadeInUp 0.8s ease-out;
}

/* Link and Text Animations */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #ffc107 !important;
}

/* Skill Tags Animation */
.badge, .tag {
    animation: rotateIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.badge:hover, .tag:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Certificate Image Animation */
img[alt*="Certificate"], img[alt*="certificate"] {
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

img[alt*="Certificate"]:hover, img[alt*="certificate"]:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Stagger animation delays for multiple elements */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Heading Animations */
h1, h2, h3, h4, h5 {
    animation: fadeInDown 0.6s ease-out;
}

h1 {
    animation: fadeInDown 0.8s ease-out;
}

h2 {
    animation-delay: 0.2s;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .btn {
        transition: all 0.2s ease;
    }
    
    .card:hover {
        transform: translateY(-4px);
    }
    
    .animate-slide-in-left,
    .animate-slide-in-right {
        animation: fadeInUp 0.6s ease-out !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffc107;
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    animation: fadeInUp 0.6s ease-out;
}

.back-to-top:hover {
    background-color: #fff;
    color: #ffc107;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
}

.back-to-top.show {
    display: flex;
}

/* Contact Form Styles */
#contact .form-control {
    transition: all 0.3s ease;
    color: #fff !important;
}

#contact .form-control:focus {
    background-color: #495057 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: #fff !important;
}

#contact .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#contact .btn-outline-warning {
    transition: all 0.3s ease;
}

#contact .btn-outline-warning:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Copy to Clipboard Button Animation */
.btn-outline-warning.copied::after {
    content: " Copied!";
    animation: fadeInUp 0.3s ease-out;
}

/* Skill Level Indicators */
.skill-level {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    font-weight: bold;
}

.skill-level.beginner {
    background-color: rgba(100, 150, 255, 0.2);
    color: #6496ff;
}

.skill-level.intermediate {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.skill-level.expert {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Mobile Responsiveness for Back-to-Top */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}