/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Home Section */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    color: #333;
    padding: 5%;
    animation: fadeIn 1.5s ease-in-out;
}

/* Home Content */
.home-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #222;
    animation: slideInDown 1s ease-in-out;
}

.home-content h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #0073e6;
    margin-top: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #555;
    margin-top: 10px;
}

/* Profile Container */
.profile-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0073e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.profile-photo:hover {
    transform: scale(1.05);
}

/* Resume Button */
.resume-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    color: #fff;
    background: #0073e6;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 115, 230, 0.3);
    font-weight: bold;
    text-transform: uppercase;
}

.resume-btn:hover {
    background: #005bb5;
    transform: scale(1.08);
    box-shadow: 0px 6px 12px rgba(0, 91, 181, 0.4);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-content h1 {
        font-size: 2rem;
    }
    .home-content h2 {
        font-size: 2.4rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    .resume-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}


/* About Section */
#about {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

#about h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 20px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #about h2 {
        font-size: 1.8rem;
    }
    .about-text {
        font-size: 1rem;
        padding: 0 10px;
    }
}


/* Education Section */
.education-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.education-title {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 20px;
}

/* Education Section */
.education-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.education-title {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 20px;
}

/* Education Table */
.education-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table Header */
.education-table thead {
    background-color: #007bff;
    color: white;
}

.education-table th, 
.education-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
}

.education-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive Design (Ensuring Table Format Stays at 768px) */
@media (max-width: 768px) {
    .education-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 10px;
    }

    .education-table th, 
    .education-table td {
        font-size: 0.9rem;
        padding: 10px;
    }

    .education-title {
        font-size: 1.8rem;
    }
}

/* Skills Section */
.skills-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

/* Section Title */
.skills-title {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 30px;
}

/* Two-Column Layout */
.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

/* Skills Box */
.skills-box {
    flex: 1;
    min-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sub-Titles */
.sub-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

/* Skill Name */
.skill-name {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
    text-align: left;
    margin-bottom: 5px;
}

/* Progress Bars */
.skill-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-fill {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: #007bff; /* Consistent Blue Color */
    transition: width 1s ease-in-out;
}

/* Skill Percentage */
.skill-percent {
    text-align: right;
    font-size: 0.9rem;
    color: #333;
    margin-top: 5px;
}

/* Non-Technical Skills & Interests */
.skills-card {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 15px;
}

/* List Styles */
.skills-card ul {
    list-style: none;
    padding: 0;
}

.skills-card li {
    font-size: 1rem;
    padding: 5px 0;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skills-box {
        width: 100%;
        max-width: 400px;
    }
}


/* Projects Section */
#projects {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f0f0, #e2e8f0);
}

/* Section Title */
.section-title {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 30px;
}

/* Horizontal Scroll Container */
.projects-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #007bff transparent;
}

/* Scrollbar Styling */
.projects-container::-webkit-scrollbar {
    height: 8px;
}

.projects-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.projects-container::-webkit-scrollbar-track {
    background: transparent;
}

/* Project Card */
.project-card {
    flex: 0 0 360px; /* Fixed width for each card */
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Project Card - Hover Effect */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f0f0f0, #e3e6eb);
}

/* Elegant Glow Effect */
.project-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a90e2, #a8c0ff); /* Soft blue gradient */
    z-index: -1;
    transform: scaleX(0);
    transition: transform 0.4s ease-in-out, opacity 0.4s;
    opacity: 0.5;
    border-radius: 15px;
}

/* Glow Effect on Hover */
.project-card:hover::before {
    transform: scaleX(1);
    opacity: 0.7;
}





/* Project Titles */
.project-card h3 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 12px;
}

/* Date */
.date {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    background: #eef2ff;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Project Description */
.project-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* Button to Scroll Right */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.scroll-btn:hover {
    background: #0056b3;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .project-card {
        flex: 0 0 90%;
        margin: auto;
    }
}



/* Internship Section */
.internships-container {
    padding: 40px 10%;
    background-color: #f9f9f9;
}

.internships-title {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 30px;
    text-align: center;
}

/* Timeline Container */
.internships-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    max-width: 800px;
    margin: auto;
}

/* Timeline Item */
.internship-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Eye Icon */
.internship-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.internship-icon::before {
    content: "\1F441"; /* Unicode for Eye Emoji */
    font-size: 20px;
    color: white;
}

.internship-icon:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Timeline Content */
.internship-content {
    flex: 1;
}

.internship-date {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.internship-role {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.internship-organization {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.internship-description {
    font-size: 14px;
    color: #666;
}

/* Modal Styles */
.modal-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-image {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

/*workshop section*/
.workshop-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.workshop-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.workshop-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: auto;
}

.workshop-item {
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    border-left: 5px solid #007bff;
    border-right: 5px solid #007bff;
}

.workshop-item:hover {
    transform: scale(1.02);
}

.workshop-text {
    text-align: center;
}

.workshop-text h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 10px;
}

.workshop-org {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.workshop-date {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    margin: 5px 0;
}

.workshop-desc {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workshop-item {
        padding: 15px;
    }

    .workshop-text h3 {
        font-size: 1.3rem;
    }

    .workshop-org,
    .workshop-date,
    .workshop-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .workshop-title {
        font-size: 1.8rem;
    }

    .workshop-item {
        padding: 12px;
    }

    .workshop-text h3 {
        font-size: 1.2rem;
    }

    .workshop-org,
    .workshop-date,
    .workshop-desc {
        font-size: 0.9rem;
    }
}


/* certificate Section Styling */
.certificates-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Certificates Grid Layout */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Individual Certificate Cards */
.certificate {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-right: 5px solid #007bff;
}

.certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Certification Title */
.certificate h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Certification Details */
.details {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

/* Preview Button */
.preview-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.preview-btn:hover {
    background: #0056b3;
}

/* Certificate Preview Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}


.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Close Button */
.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 25px;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .certificates-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 90%;
    }
}


/*achievements-section*/
.achievements-section {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
}

.achievements-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.achievement-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #007bff;
    border-right: 5px solid #007bff;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.achievement-card .icon {
    display: block;
    font-size: 40px;
    color: #ff9800;
    margin-bottom: 10px;
}

.achievement-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.achievement-card p {
    font-size: 16px;
    color: #555;
}

@media (max-width: 600px) {
    .achievements-container {
        flex-direction: column;
        align-items: center;
    }

    .achievement-card {
        width: 90%;
    }
}


/* Social Section */
.socials-section {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Social Container */
.socials-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Social Cards */
.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Social Icons */
.social-card i {
    font-size: 24px;
    margin-right: 10px;
}

/* Social Colors */
.github { background: #24292e; }
.linkedin { background: #0077b5; }

/* Hover Effect */
.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Responsive Design for Small Screens */
@media (max-width: 500px) {
    .socials-container {
        flex-direction: column;
        align-items: center;
    }

    .social-card {
        width: 90%;
        max-width: 250px;
    }
}



/*contact-section*/
.contact-section {
    padding: 50px 5%;
    background: linear-gradient(135deg, #eef2f3, #dfe9f3);
    text-align: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    gap: 20px;
    overflow: hidden;
    border-left: 5px solid #007bff;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info p strong {
    color: #222;
    margin-right: 10px;
}

.contact-info p i {
    color: #007bff;
    font-size: 18px;
    margin-right: 8px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease-in-out;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0px 0px 8px rgba(0, 91, 187, 0.3);
}

.contact-form button {
    padding: 12px;
    background: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* 📱 Full Mobile Optimization */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        width: 100%; /* Ensures no horizontal overflow */
    }

    .contact-info, .contact-form {
        width: 90%;
        text-align: center;
        max-width: 100%;
    }

    .contact-info p {
        justify-content: center;
        word-break: break-word; /* Prevents text from overflowing */
    }
}

/* 📱 Ultra Small Screens */
@media (max-width: 480px) {
    .contact-title {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .contact-form input, .contact-form textarea {
        font-size: 14px;
        padding: 10px;
    }

    .contact-form button {
        font-size: 15px;
        padding: 10px;
    }
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

#scrollToTopBtn:hover {
    background: #0056b3;
    transform: scale(1.1);
}
