/* Reset styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar styles */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #1a1a1a, #222);
    border-top: 5px solid #ff4d4d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar:hover {
    background: linear-gradient(to right, #333, #1a1a1a);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #ff4d4d;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: #ff4d4d;
    transform: scale(1.1);
}

/* Header styles */
header {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('pic.png') no-repeat center center/cover;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    animation: fadeInBackground 3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

@keyframes fadeInBackground {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Dark overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Header content */
.header-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease-in-out;
}

.header-content h1 {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 2px;
    animation: fadeIn 2s ease-in-out;
}

.header-content h1 span {
    color: #ff4d4d;
    font-weight: bold;
}

.header-content p {
    font-size: 1.5rem;
    margin: 15px 0;
    opacity: 0.8;
}

/* Button styling */
.btn {
    padding: 12px 35px;
    background: linear-gradient(135deg, #ff4d4d, #e33d3d);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
    transition: background 0.3s ease, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #e33d3d, #ff4d4d);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.6);
}

.pulse {
    animation: pulseEffect 2s infinite;
}

/* Animations */
@keyframes pulseEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Scroll down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    font-size: 1rem;
    color: #ffffff;
    animation: fadeIn 2s ease-in-out infinite alternate;
}

/* About Section */
#about {
    background: linear-gradient(135deg, #1a1a1a, #222);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.about-container:hover {
    box-shadow: 0 0 35px rgba(255, 77, 77, 0.6);
    transform: scale(1.02);
}

.about-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* New Neon Effect for Image */
.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(91, 91, 240, 0.7), 0 0 40px rgba(255, 77, 77, 0.5);
    z-index: -1; /* Place behind the image */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px 0 0 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: scale(1.1);
    will-change: transform;
}

.about-image img:hover {
    transform: scale(1.15) translateY(-10px);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about-content {
    flex: 2;
    padding: 30px;
    text-align: left;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff4d4d;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Button styling */
.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #ff4d4d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #e33d3d;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-image img {
        border-radius: 15px 15px 0 0;
    }

    .about-content {
        padding: 20px;
    }
}

/* Skills Section Styles */
#skills {
    background: linear-gradient(135deg, #1a1a1a, #222);
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.skills-container {
    max-width: 1000px; /* Adjusted to match About Me section */
    margin: 0 auto;
}

.skills-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ff4d4d;
}

.skills-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* New Skills Box */
.skills-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Skill Cards */
.skill-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Skill Level */
.skill-level {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 20px;
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: #ff4d4d;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Hover Effects */
.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 77, 77, 0.5);
}

/* Background Animation Effect */
.skill-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.skill-card:hover::before {
    transform: translate(-50%, -50%) scale(1);
    z-index: -1; /* Ensure it stays behind content */
}

/* Education Section Styles */
#education {
    background: linear-gradient(135deg, #1a1a1a, #222);
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.education-container {
    max-width: 1000px; /* Adjust to match other sections */
    margin: 0 auto;
}

.education-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ff4d4d;
}

.education-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Education Box */
.education-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

/* Education Item */
.education-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.education-date {
    display: block;
    font-size: 1rem;
    color: #ff4d4d;
    margin-bottom: 10px;
}

/* Hover Effects */
.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

/* Projects Section Styles */
#projects {
    background: linear-gradient(135deg, #1a1a1a, #222);
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-container h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff4d4d;
}

.project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Space between cards */
}

/* Project Card Styles */
.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 300px; /* Set card width */
}

/* Project Image */
.project-image img {
    width: 100%;
    height: auto;
    border-bottom: 5px solid #ff4d4d; /* Underline effect for images */
    transition: transform 0.3s ease;
}

/* Project Info */
.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin: 15px 0;
}

.project-info p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    background: #ff4d4d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #e33d3d;
    transform: scale(1.05);
}

/* Hover Effects */
.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 77, 77, 0.5);
    border: 2px solid rgba(255, 77, 77, 0.5);
}

/* Image Hover Effect */
.project-image img:hover {
    transform: scale(1.05); /* Zoom effect on image */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .projects-container h2 {
        font-size: 2rem; /* Adjust heading size on smaller screens */
    }

    .project-card {
        width: 100%; /* Full width on small screens */
        max-width: 350px; /* Set a max width */
    }
}

/* Contact Me Section Styles */
#contact {
    background: linear-gradient(135deg, #1a1a1a, #222);
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.contact-container p {
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    transform: scale(1.02);
}

button.btn {
    padding: 15px;
    background: #ff4d4d;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s;
    font-weight: bold;
}

button.btn:hover {
    background: #e33d3d;
    transform: scale(1.05);
}

/* Social Icons Styles */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a, #222);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #000; /* Added black border */
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Optional: Shadow effect */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Text */
footer p {
    margin: 0;
    opacity: 0.8;
}

/* Footer Links Styles */
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Link Hover Effects */
.footer-links a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 77, 77, 0.3);
    transform: translateX(-50%) scaleY(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.footer-links a:hover {
    color: #ff4d4d; /* Change color on hover */
}

.footer-links a:hover::before {
    transform: translateX(-50%) scaleY(1);
}

/* Contact Info Styles */
.contact-info {
    margin: 20px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-info a {
    color: #ff4d4d;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Social Media Icons */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Social Icon Hover Effects */
.social-icon:hover {
    transform: scale(1.2);
    color: #ff4d4d; /* Change color on hover */
}

/* Glowing Effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 77, 77, 0.1);
    filter: blur(20px);
    z-index: 0;
    animation: glowEffect 5s infinite alternate;
}

@keyframes glowEffect {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

