/* 
* Khushi Verma - Portfolio Website
* A modern, clean, and professional portfolio for a Full Stack Developer
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a41da;
    --dark-color: #2d2b55;
    --light-color: #f8f9fa;
    --grey-color: #f0f2f5;
    --text-color: #fff;
    --text-light: #cccccc;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #000;
  overflow-x: hidden;
  text-align: justify;
  max-width: 100%;
}

/* Define bg-grey class */
.bg-grey {
  background-color: #000;
  color: #fff !important; /* Ensure text is light on dark background */
}

/* Change background to white and text to black for featured projects */
#projects .card.bg-grey {
  background-color: #fff !important;
  color: #000 !important;
}

#projects .card.bg-grey h3,
#projects .card.bg-grey h5,
#projects .card.bg-grey p {
  color: #000 !important;
}

/* Change text color to black for Languages, Frameworks & Libraries in skills section */
#skills .card.bg-grey {
  background-color: #fff !important;
  color: #000 !important;
}

#skills .card.bg-grey h3,
#skills .card.bg-grey p,
#skills .card.bg-grey span:not(.badge) {
  color: #000 !important;
}

/* Ensure badges in skills section have white text */
#skills .card.bg-grey span.badge.bg-blue {
  color: white !important;
}

/* Define text-blue class */
.text-blue {
  color: #7314f4 !important; /* Purple color for text */
}

/* Define border-purple class */
.border-purple {
  border-left: 7px solid #7314f4; /* Purple border */
}

/* Define bg-blue class */
.bg-blue {
  background-color: #7314f4 !important; /* Purple background */
  color: white !important; /* White text on purple background */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: justify;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #000 !important;
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* ===== Navbar ===== */
.navbar {
    padding: 15px 0;
    background-color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

.navbar-brand span {
    margin-left: 10px;
}

.logo {
    width: 40px;
    height: auto;
}

.navbar-nav {
    margin-left: auto;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 180px 0 100px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    max-height: 450px;
    object-fit: cover;
}

.highlight {
    color: var(--primary-color);
}

.available-badge {
    display: inline-block;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.available-badge i {
    color: #28a745;
    margin-right: 5px;
    font-size: 10px;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== About Section ===== */
.about-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.about-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

/* ===== Skills Section ===== */
.skill-category {
    background-color: #000;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    text-align: justify;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.skill-list li span {
    color: var(--text-light);
}

.progress-wrapper {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-label span {
    font-weight: 500;
}

.progress {
    height: 10px;
    border-radius: 50px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 50px;
    transition: width 1.5s ease;
}

/* ===== Services Section ===== */
.service-card {
    background-color: #000;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    text-align: justify;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== Projects Section ===== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.project-card {
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(108, 99, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--dark-color);
    color: #fff;
}

.project-content {
    padding: 25px;
    text-align: justify;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-content p {
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
}

/* ===== Resume Section ===== */
.resume-section {
    margin-bottom: 30px;
}

.resume-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.resume-item {
    padding: 0 0 30px 20px;
    margin-bottom: 30px;
    border-left: 2px solid var(--primary-color);
    position: relative;
    text-align: justify;
}

.resume-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #000;
    border: 2px solid var(--primary-color);
    left: -9px;
    top: 0;
}

.resume-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.resume-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.resume-date {
    display: inline-block;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 15px;
}

.resume-item ul {
    padding-left: 20px;
}

.resume-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.resume-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact-info {
    padding: 30px;
    background-color: #000;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    height: 100%;
    text-align: justify;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-item .icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-item .details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item .details p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background-color: #000;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

/* Contact form labels and heading */
#contact .form-label {
    color: black;
}

#contact h3.border-purple {
    color: black !important;
}

/* Form placeholder styles */
#contact input::placeholder,
#contact textarea::placeholder {
    color: black !important;
}

/* Vendor-specific selectors for cross-browser compatibility */
#contact input::-webkit-input-placeholder,
#contact textarea::-webkit-input-placeholder {
    color: black !important;
}

#contact input::-moz-placeholder,
#contact textarea::-moz-placeholder {
    color: black !important;
    opacity: 1;
}

#contact input:-ms-input-placeholder,
#contact textarea:-ms-input-placeholder {
    color: black !important;
}

#contact input:-moz-placeholder,
#contact textarea:-moz-placeholder {
    color: black !important;
    opacity: 1;
}

/* Form input styles for contact form */
#contact input.form-control,
#contact textarea.form-control {
    background-color: white !important;
    border: 1px solid black !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
}

textarea.form-control {
    height: auto;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    padding: 80px 0 30px;
    color: #fff;
}

.footer h3, .footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-info {
    margin-bottom: 30px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    margin-bottom: 30px;
}

.footer .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer .social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.copyright p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright i {
    color: #e25555;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* Custom progress bar styles */
.progresss-bar {
    height: 10px;
    border-radius: 50px;
    background-color: #e9ecef;
    overflow: hidden;
    margin-bottom: 20px;
}

.progresss {
    height: 100%;
    border-radius: 50px;
    background-color: var(--primary-color); /* Changed from black to primary color */
    color: white;
    text-align: center;
    line-height: 10px;
    font-size: 10px;
    transition: width 1.5s ease;
}

/* Make text in black background cards white for better contrast */
.bg-black {
    color: white !important;
}

.bg-black h3, .bg-black h4, .bg-black h5, .bg-black p, .bg-black li {
    color: white !important;
}

/* Change background color of Web Developer card */
#experience .card:first-of-type {
    background-color: #22282f !important;
}

/* Change background color of Summer Intern card */
#experience .card:nth-of-type(2) {
    background-color: #22282f !important;
}

/* Change background color of Industrial Trainee card */
#experience .card:nth-of-type(3) {
    background-color: #22282f !important;
}

/* Change background color of Services I Offer cards */
.service-card {
    background-color: #22282f !important;
}

/* Change background color of Education and Certification cards */
#education .card.bg-black {
    background-color: #22282f !important;
}

/* Reduce hero section padding */
#home {
    padding-top: 70px !important; /* Reduced from 180px */
    padding-bottom: 60px !important; /* Reduced from 100px */
}

/* Fix for container and row elements */
.container-fluid {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.row {
    margin-left: -0.75rem;
    margin-right: -0.5rem;
    width: 100%;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
    }

    .nav-item {
        margin: 5px 0;
    }

    .hero-section {
        padding: 150px 0 80px;
    }

    .hero-content {
        margin-bottom: 50px;
        text-align: center;
    }

    .hero-buttons, .hero-stats {
        justify-content: center;
    }

    .about-content {
        margin-top: 50px;
    }

    .skill-category, .service-card, .project-card {
        margin-bottom: 30px;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .contact-info {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .about-buttons, .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }

    .footer {
        text-align: center;
    }

    .footer-links, .footer-social {
        margin-top: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item .icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .service-card {
        padding: 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .service-icon i {
        font-size: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Fix for mobile responsiveness */
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .col-sm-11 {
        width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.5rem;
    }

    .card-img-top {
        width: 100%;
        height: auto;
    }

    /* Fix for d-flex elements on mobile */
    .d-flex {
        flex-wrap: wrap;
    }

    /* Ensure all elements stay within viewport */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Fix for navbar on mobile */
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Reduce logo size on mobile */
    .navbar-brand img {
        width: 40px !important;
        height: auto;
    }

    /* Reduce container padding for mobile */
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 0.5rem !important;
    }
}
