
body {
    background: linear-gradient(to right, #f3f3f3, #e8f0ff);
    font-family: 'Roboto', sans-serif;
}

.all {
    padding-top: 150px;
}


/* profile */
.profile-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.profile-content {
    margin-top: 70px;
}

.name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.role {
    font-size: 18px;
    color: #777;
    margin-bottom: 15px;
}

.social-icons a {
    font-size: 30px;
    color: #555;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

.contact-info-section {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info-section i {
    font-size: 20px;
    color: #007bff;
}

.contact-info-section span {
    font-size: 16px;
    color: #555;
}

hr {
    margin: 10px 0;
}

.btn-download {
    font-size: 16px;
    padding: 10px 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #0056b3;
}

.btn-download i {
    font-size: 18px;
}


/* info */
.info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.info-box.active {
    display: block;
}


/* side nav */
.nav-section {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.nav-section a {
    display: block;
    padding: 15px;
    color: #007bff;
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-section a:hover {
    color: #0056b3;
}

.nav-section a .tooltip {
    display: none;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-section a:hover .tooltip {
    display: block;
    opacity: 1;
}

.nav-section a i {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .nav-section {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        padding: 15px;
    }

    .nav-section a {
        font-size: 24px;
        margin-bottom: 0;
        padding: 12px;
    }

    .nav-section a .tooltip {
        bottom: -35px;
    }

    .profile-card img {
        width: 120px;
        height: 120px;
        top: -80px;
    }

    .all {
        padding-top: 70px;
    }
}

.info-box h5 {
    color: #007bff;
    margin-bottom: 12px;
    font-weight: bold;
}

.info-box ul li {
    margin-bottom: 8px;
}

.badge {
    padding: 8px 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

.role {
    background: rgb(238, 238, 238);
    display: inline;
    /* or inline-block */
    padding: 5px 12px;
    /* Optional, for better visual spacing */
    border-radius: 4px;
    /* Optional, for rounded corners */
}

.contact-info-section {
    background-color: #f9f9f9;
    /* Light Grey */
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-section i {
    min-width: 30px;
    /* Ensures icons are aligned properly */
    color: #555;
}

.contact-info-section span {
    font-size: 16px;
    color: #333;
}

.about-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-card h6 {
    font-size: 1rem;
    margin-top: 8px;
}

.skill-card p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Carousel Item */
.carousel-item {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay to darken and hold content */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker overlay */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
    color: white;
}

/* Info card to the right side */
.project-info-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    max-width: 300px;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* GitHub and Demo buttons */
.project-links {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.project-links .btn {
    transition: transform 0.3s ease;
}

.project-links .btn:hover {
    transform: translateY(-2px);
}

/* Optional: Style for carousel buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}



.projects-container, .competitions-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.project-card,
.competition-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-card h6,
.competition-card h6 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
}

.project-card p,
.competition-card p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 4px;
    margin-bottom: 10px;
}

.project-buttons, .competition-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.project-card a, .competition-card a {
    font-size: 12px;
    padding: 4px 8px;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.btn-demo,
.btn-github {
    background-color: #3498db;
    color: white;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-demo:hover {
    background-color: #2980b9;
}

.btn-github {
    background-color: #2ecc71;
}

.btn-github:hover {
    background-color: #27ae60;
}

.project-date,
.competition-date {
    font-size: 0.75rem;
    color: #95a5a6;
    text-align: right;
}

.view-all-projects {
    margin-top: 10px;
}

.view-all-projects a {
    font-size: 0.85rem;
    text-decoration: none;
    color: #3498db;
}

.view-all-projects a:hover {
    text-decoration: underline;
}
.internship-card {
    background: rgba(245, 245, 245, 0.9);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.internship-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.internship-tasks {
    padding-left: 18px;
    margin-bottom: 12px;
    color: #34495e;
    font-size: 0.9rem;
}

.internship-tasks li {
    margin-bottom: 6px;
}

.internship-skills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background-color: #e0f7fa;
    color: #00796b;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 500;
    display: inline-block;
}

.timeline-with-icons {
    border-left: 2px solid hsl(0, 0%, 85%);
    position: relative;
    list-style: none;
    padding-left: 30px;
}

.timeline-with-icons .timeline-item {
    position: relative;
}

.timeline-with-icons .timeline-icon {
    position: absolute;
    left: -46px;
    background-color: hsl(217, 88.2%, 90%);
    color: hsl(217, 88.8%, 35.1%);
    border-radius: 50%;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* skill */


.skill-category-card
 {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* contact */


.contact-section {
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 50px auto;
}

.contact-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 30px;
    font-style: italic;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #2f80ed;
}

.btn-submit {
    background-color: #2f80ed;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #56ccf2;
    transform: scale(1.05);
}

.contact-form .form-control, .btn-submit {
    transition: transform 0.3s ease;
}

.contact-form .form-control:focus, .btn-submit:hover {
    transform: translateY(-3px);
}

.contact-form .form-control::placeholder {
    color: #888;
}

.contact-form textarea {
    resize: none;
}

/* For smaller screens */
@media (max-width: 768px) {
    .contact-section {
        padding: 30px;
    }

    .contact-section h2 {
        font-size: 28px;
    }

    .contact-section p {
        font-size: 16px;
    }

    .contact-form .form-control {
        font-size: 14px;
    }

    .btn-submit {
        font-size: 16px;
    }
}
/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Background color of loader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #3498db; /* Spinner color */
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
