:root {
    --primary-color: #ec8b71fe;
    --primary-dark: #333;
    --primary-light: #ec8c71c1;
    --secondary-color: #f6bde8;
    --text-color: #333;
    --dark-bg: #2c3e50;
    --cv-color1: #8a3ad5;
    --cv-color2: #00d2ff;
    --cv-light: #b595f9ca;
    --cv-light2: #1ab9e0a2;
    --border-radius: 8px;
}

body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
}
/* Best practices styling */
/* back to top button styling */
#scroll-top-btn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 25px; /* Place the button 30px from the right */
    background-color: var(--primary-light);
    border: white ;
    color: white ; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    z-index: 1000;
	
  }
  
  #scroll-top-btn:hover {
    background-color: var(--secondary-color); /* Add a dark-grey background on hover */
  } 

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}
/* About me button styling  */
.button {
    background-color: var(--primary-color); 
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;    
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
  }

.button:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 10px 0 #b8afffba;
  }

/* Header Section */
.web-header {
    background:var(--primary-color);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.web-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.web-header .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.intro-card {
    background-color: #fff;
    border-left: 5px solid var(--secondary-color);
}

.practices-card {
    background-color: var(--primary-color);
    color:white;
}

.progress-container {
    background-color: #fff;
    border-left: 5px solid var(--secondary-color);
}

/* Progress Bar */
.progress {
    height: 1.5rem;
    background-color: #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background-image: linear-gradient(90deg, #FF53F9, #FFAE45);
    transition: width 0.5s ease;
}

/* Checklist Styling */
.practices-container {
    display: flex;
    justify-content: center;
    flex-wrap:nowrap;
    flex-direction: row;
}
.practice-category {
    flex:1; /* Each category takes up equal space */
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-title {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 550;
}

.practice-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.practice-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.practice-title {
    font-weight: 600;
    color: var(--primary-color);
}

.practice-explanation {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color:black;
}

.help-btn {
    background-color: rgba(246, 221, 239, 0.44);
    color: rgba(198, 40, 40, 0.72);
    border: 0.5px dotted rgba(0, 0, 0, 0.434);
    padding: 0 0.4rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check {
    display:flex;
    justify-content: space-between;
}

.help-btn:hover {
    background-color: rgba(222, 74, 175, 0.634);
    color: white;
    box-shadow: 
        0 12px 16px 0 rgba(0, 0, 0, 0.24),  /* deep shadow */
        0 17px 50px 0 rgba(0, 0, 0, 0.19);  /* lighter glow */
    transition: all 0.3s ease;
}

.form-check-input {
    cursor: pointer;
}

/* Responsive layout for checklist */
@media (max-width: 1200px) {
    .practices-container {
      flex-direction: column;
    }
  }

/* Reward Image */
.reward-image-container {
    margin: 0 auto;
    max-width: 350px;
}

#reward-image {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* CV Page Specific Styles */
.cv-page {
    /* background-color: #f5f7fa; */
    background: linear-gradient(135deg, var(--cv-color1), var(--cv-color2));
}

.cv-page .navbar-brand{
    color: hsl(0, 0%, 100%) !important;
}

.cv-header {
    color: white;
    padding: 5rem 0 3rem;
    margin-bottom: 2rem;
}

/* animation for all sections on CV page */
section {
    animation: slideUp 1s ease-out;
}

.profile-img-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    animation: popIn 1s ease-out;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-3px);
}

.bio-intro {
    font-size: 1.1rem;
    max-width: 800px;
}

.section-title {
    color: var(--cv-light);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Skills Styling */
.skill-category-title {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    background-color: var(--cv-light);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Experience Styling */
.experience-title {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.experience-date {
    background-color: var(--primary-light);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.experience-company {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.experience-description {
    padding-left: 1.3rem;
}

.experience-description li {
    margin-bottom: 0.5rem;
}

/* Education Styling */
.education-degree {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-school {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Certifications Styling */
.certifications-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.certification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.certification-item:last-child {
    border-bottom: none;
}

.certification-name {
    font-weight: 500;
}

.certification-year {
    background-color: var(--primary-light);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Language Styling */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-weight: 500;
}

.language-level {
    display: flex;
    gap: 3px;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.level-dot.active {
    background-color: var(--primary-color);
}

/* Interest Styling */
.interest-items {
    display: flex;
    flex-wrap: wrap;
}    

.interest {
    background-color: var(--cv-light);
    color: white;
    padding: 0.3rem 0.8rem;
    margin: 0 0 0.7rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 1200px) { 
    /* make projects stack vertically on smaller screen */
    .project-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }}

@media (max-width: 992px) {
    /* centering name and social links on smaller screens */
    .myName, .title, .social-links {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .web-header, .cv-header {
        padding: 2rem 0;
    }
    .container{
        padding: 0 2rem;
    }
}

@media (max-width: 606px){
    .lead{
        display: none;
    }
}

/* Animation */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dark-mode-button {
    background-color: var(--cv-light);
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;    
    font-size: 16px;
}

/* dark mode */
body.dark-mode {
    --primary-color: #d595fad8;
    --primary-light: #ca8fdfd6;
    --secondary-color: #3498db;
    --text-color: #ecf0f1;
}
body.dark-mode .dark-mode-button {
    background-color: rgb(28, 20, 41);
}

body.dark-mode .card {
    background-color: #482b5585;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.203);
}

body.dark-mode .navbar,
body.dark-mode .profile-img-containe {
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.203);
}

body.dark-mode .skill-badge,
body.dark-mode .interest {
    background-color: #444;
    color: var(--text-color);
}
body.dark-mode .skill-category-title{
    color:var(--text-color);
}
body.dark-mode .project-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode.cv-page {
    /* background-color: black; */
    background: linear-gradient(135deg, #251a57, #0f3c5b);
}