/* Define CSS Variables for Color Palette */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffffff;
    --accent-color: #17a2b8;
    --highlight-color: #f8f9fa;
    --text-color: #343a40;
    --background-color: #ffffff;
    /* --footer-background-color: #2994ff; */
    --footer-background-color: #14083A;
    --footer-text-color: #9fcdfb;
    /* --about-background-color: #1a1717; */
    --about-background-color:#14083A;
    --skills-background-color: #1f1e1e;
    /* --projects-background-color: #000000; */
    --projects-background-color:#14083A;
    --experience-background-color: #12131b;
    --extracurricular-background-color: #2c2a27;
    --contact-background-color: #a7d6ff;
    --dark-background-color: #accdff;
    --medium-background-color: #393E46;
    --light-background-color: #EEEEEE;
}

/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    font-weight: bold;
    color: var(--highlight-color);
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: var(--highlight-color);
    margin-right: 15px;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 60px 0;
}

section h1, section h2 {
    color: var(--primary-color);
    font-weight: 900; /* Maximum font weight */
}

/* General Card Styles */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px  rgb(0, 20, 237);
}

/* About Section */
#about {
    background-color: var(--about-background-color) !important;
    color: var(--secondary-color);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#about h1 {
    font-size: 2.5rem;
    font-weight: 900; /* Maximum font weight */
    margin-bottom: 30px;
    color: var(--primary-color);
}

#about p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

#about h5 {
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

#about .list-group-item {
    font-size: 1.1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    background-color: var(--light-background-color);
    border: none;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
}

#about .list-group-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

#about .btn {
    font-size: 1.1rem;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#about .btn:hover {
    background-color: var(--secondary-color);
}

/* Skills Section */
#skills {
    background-color: var(--skills-background-color) !important;
}

.skills-section .card {
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 15px;
}

.skills-section .card img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.skills-section .card h5 {
    margin-top: 10px;
}

/* Projects Section */
#projects {
    background-color: var(--projects-background-color) !important;
}

.project-details {
    min-height: 400px;
    background-color: white;
    padding: 20px;
}

/* Experience Section */
#experience {
    background-color: var(--experience-background-color) !important;
}

#experience h2 {
    font-weight: 900; /* Maximum font weight */
    margin-bottom: 30px;
}

#experience .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

#experience .card-title i {
    margin-right: 10px;
}

#experience .text-muted {
    font-size: 1rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

#experience .text-muted i {
    margin-right: 10px;
}

#experience .card-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

#experience .card-text i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Extracurricular Section */
#extracurricular {
    background-color: var(--extracurricular-background-color) !important;
    color: var(--text-color);
    /* padding: 50px; */
    padding: 20px;

    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#extracurricular h2 {
    font-size: 2.5rem;
    font-weight: 900; /* Maximum font weight */
    margin-bottom: 30px;
    color: var(--primary-color);
}

#extracurricular .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

#extracurricular .card-title i {
    margin-right: 10px;
}

#extracurricular .text-muted {
    font-size: 1rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

#extracurricular .text-muted i {
    margin-right: 10px;
}

#extracurricular .card-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

#extracurricular .card-text i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Contact Section */
#contact {
    background-color: var(--contact-background-color) !important;
    color: var(--footer-text-color);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: 900; /* Maximum font weight */
    margin-bottom: 30px;
    color: var(--primary-color);
}

#contact form {
 
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact .form-control {
    color: var(--text-color);
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

#contact .form-label {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

#contact .form-label i {
    margin-right: 10px;
    color: var(--primary-color);
}

#contact button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button[type="submit"] i {
    margin-right: 5px;
}

#contact button[type="submit"]:hover {
    background-color: var(--contact-background-color);
    color: var(--text-color);
}

/* Side contact info */
section#contact .contact-info {
    margin-top: 40px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: var(--footer-text-color);
}

footer .social-icons a {
    color: var(--footer-text-color);
    margin: 0 10px;
    font-size: 1.5rem;
}

/* Carousel Image Fix */
.carousel-inner {
    height: 400px; /* Set a fixed height for the carousel */
}

.carousel-inner img {
    height: 100%;
    object-fit: cover; /* Ensure the images fill the container without stretching */
}

.carousel-item {
    height: 400px; /* Set a fixed height for the carousel */
}

.projectcarousel {
    width: 100%;
}
.project-details{
    min-height:400px;
    background-color: white;
    padding: 20px;
}

/* Skills Section */
.skills-scroll-wrapper {
    width: 100%;
    overflow: hidden;
}

.skills-scroll {
    display: flex;
    animation: scrollSkills 20s linear infinite;
}

.skills-scroll .card {
    flex: 0 0 auto;
    width: 160px; /* Adjust the card size as needed */
    margin-right: 20px; /* Spacing between the cards */
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

@keyframes scrollSkills {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Animation for text */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text {
    animation: fadeIn 1s ease-in-out;
    
}

#typed-text{  
    background: linear-gradient(to right, #f32170, 
            #ff6b08, #cf23cf, #eedd44); 
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; }

.animated-text:nth-child(1) {
    animation-delay: 0.5s;
}

.animated-text:nth-child(2) {
    animation-delay: 1s;
}

.animated-text:nth-child(3) {
    animation-delay: 1.5s;
}

/* Typography */
.social-icons a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

social-icons a:hover {
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Full-screen height for home section */
.home-section {
    height: 100vh;
}

/* Profile photo wrapper with ring and shadow */
.profile-photo-wrapper {
    display: inline-block;
    padding: 10px;
    border: 5px solid var(--primary-color); /* Ring color */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.profile-photo-wrapper:hover {
    box-shadow: 0 8px 16px rgb(25, 0, 255);
}

.profile-photo {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .profile-photo {
        max-width: 200px;
    }
}

/* Typography for home section */
#home h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

#home span {
    font-size: 2rem;
    line-height: 1.5;
}

/* Fix for Typed.js cursor */
.typed-cursor {
    font-size: 2rem;
    vertical-align: middle;
}

/* Responsiveness */
@media (max-width: 768px) {
    section#contact {
        padding: 30px;
    }

    .contact-info {
        font-size: 1rem;
    }

    input, textarea {
        font-size: 14px;
    }

    .skills-section .card {
        max-width: 120px;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }

    #home span {
        font-size: 1.25rem;
    }

    .profile-photo-wrapper {
        padding: 5px;
        border: 3px solid var(--primary-color);
    }

    .social-icons a {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 1rem;
    }

    .home-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive adjustments for About section */
@media (max-width: 768px) {
    #about h1 {
        font-size: 2rem;
    }

    #about p {
        font-size: 1rem;
    }

    #about .list-group-item {
        font-size: 1rem;
    }

    #about .btn {
        font-size: 1rem;
    }
}

/* Responsive adjustments for Skills section */
@media (max-width: 768px) {
    #skills h2 {
        font-size: 2.5rem;
    }

    #skills .card h5 {
        font-size: 1.25rem;
    }

    #skills .card img {
        width: 40px;
    }
}

/* Responsive adjustments for Projects section */
@media (max-width: 768px) {
    #projects h2 {
        font-size: 2.5rem;
    }

    #projects .list-group-item {
        font-size: 1rem;
    }

    #projects .btn {
        font-size: 1rem;
    }
}

/* Responsive adjustments for Experience section */
@media (max-width: 768px) {
    #experience h2 {
        font-size: 2.5rem;
    }

    #experience .card-title {
        font-size: 1.5rem;
    }

    #experience .card-text {
        font-size: 1rem;
    }

    #experience .btn {
        font-size: 1rem;
    }
}

/* Responsive adjustments for Extracurricular section */
@media (max-width: 768px) {
    #extracurricular h2 {
        font-size: 2rem;
    }

    #extracurricular .card-title {
        font-size: 1.25rem;
    }

    #extracurricular .text-muted {
        font-size: 0.9rem;
    }

    #extracurricular .card-text {
        font-size: 1rem;
    }

    .carousel-inner, .carousel-item {
        height: 200px; /* Adjust height for mobile screens */
    }
}

/* Responsive adjustments for Contact section */
@media (max-width: 768px) {
    #contact h2 {
        font-size: 2rem;
    }

    #contact .form-label {
        font-size: 1rem;
    }

    #contact .form-control {
        font-size: 1rem;
    }

    #contact button[type="submit"] {
        font-size: 1rem;
    }

    #contact .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive adjustments for carousel images and content */
@media (max-width: 768px) {
    .carousel-inner img {
        height: auto;
        max-height: 200px; /* Adjust the height as needed */
    }

    .carousel-item .col-md-6 {
        width: 100%;
        padding: 0 15px;
    }

    .carousel-item .col-md-6 img {
        width: 100%;
        height: auto;
    }

    .carousel-inner, .carousel-item {
        height: 200px;
    }

    .carousel-item .col-md-6 + .col-md-6 {
        margin-top: 20px;
    }
}

@media(max-width:754px){
    html {
        scroll-padding-top: 280px; /* Adjust this value to match your navbar height */
        scroll-behavior: smooth;
    }    
}

