/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('dev1.gif') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* Header Section */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    background: url('tech1.gif') no-repeat center center; /* Background GIF */
    background-size: cover;
    color: #fff;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 150px;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.profile-image:hover {
    transform: scale(1.2);
}

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

@keyframes bounce-image {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Navbar Section */
.navbar {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Add a semi-transparent black background */
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better visibility */
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #f39c12;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.hover-link:hover::after {
    transform: scaleX(1);
}

.hover-link:hover {
    color: #f39c12;
}

/* Sections */
.section {
    padding: 60px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    margin: 20px auto;
    max-width: 80%;
    border-radius: 15px;
    border: 2px solid #f39c12;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Style for resume icon */
.resume-icon {
    width: 40px;  /* Increase the width */
    height: 40px; /* Increase the height to keep it proportionate */
    margin-right: 10px;
    vertical-align: middle;
}


/* Enhanced button animation */
.download-resume {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 50px; /* Make it more stylish with rounded corners */
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s ease-in-out;
}

.download-resume:hover {
    background-color: #e67e22;
    transform: translateY(-5px) scale(1.05); /* Smooth hover effect */
}

.bounce-button {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Project Section */
.project-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.project-card {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
    border: 2px solid #f39c12;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
    cursor: pointer; /* Add pointer cursor to show it's clickable */
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3, .project-card p, .project-card a {
    color: white;
}

.project-card:hover {
    transform: scale(1.1);
}

/* Highlight Smart Traffic Project */
.highlight {
    background-color: #f39c12;
    color: black;
    animation: highlight 1.5s infinite alternate;
}

@keyframes highlight {
    0% { background-color: #f39c12; color: black; }
    100% { background-color: #000000; color: #f39c12; }
}

/* Social Icons */
.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s;
}

.social-icons a:hover {
    color: #f39c12;
    transform: scale(1.2);
}

/* Contact Section Social Icons - Adjust Image Size */
.social-icons img {
    width: 40px;  /* Adjust the size as per your preference */
    height: 40px; /* Ensure consistent height */
    border-radius: 50%; /* Optional: Make icons circular */
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2); /* Increase size on hover for effect */
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    header, .section {
        padding: 30px 10px;
    }

    .project-card {
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .profile-image {
        width: 100px;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes zoomIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.fade-in-text {
    animation: fadeIn 1s ease-in-out;
}

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

.zoom-in-text {
    animation: zoomIn 0.8s ease-in-out;
}

.bounce-button {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Clickable Text Animation */
.clickable {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s;
}

.clickable:active {
    color: #e67e22;
    transform: scale(1.1);
}

/* Certificate Section */
.certificate-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.certificate-card {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    border: 2px solid #f39c12;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
    transition: transform 0.3s ease-in-out;
}

.certificate-preview {
    width: 100%; /* Ensures the image takes full width of the card */
    max-width: 400px; /* Adjust this value to increase/decrease the image size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out;
}

.certificate-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.8);
}

.certificate-card h3 {
    color: white;
    font-size: 1.2rem;
}

.download-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.download-button:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

.pdf-preview {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.pdf-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}
