:root {
    --clr-primary-light: #2494d9;
    --clr-secondary-light: #3a417a;
    --clr-background-light: #484646f3;
    --clr-card-bg-light: #212020;
    --clr-text-main-light: #ffffff;
    --clr-text-secondary-light: #eee9e9;
    --clr-link-light: #5d67e7;
    --clr-accent-progress: linear-gradient(to right, #e0b1e8, #3c3e6e);
}

body.dark-mode {
    --clr-primary-light: #000000;
    --clr-secondary-light: #111111;
    --clr-background-light: #121212;
    --clr-card-bg-light: #1c1c1c;
    --clr-text-main-light: #f0f0f0;
    --clr-text-secondary-light: #b0b0b0;
    --clr-link-light: #f7e9b0;
    --clr-accent-progress: linear-gradient(to right, #f7e9b0, #c0c0c0);
    color: var(--clr-text-main-light);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: monospace;
    line-height: 1.6;
    background-color: var(--clr-background-light);
    color: var(--clr-text-main-light);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: var(--clr-link-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

.header {
    background-color: var(--clr-primary-light);
}

.hero-section {
    color: white;
    text-align: center;
    padding: 40px 20px 20px;
}

.hero-name {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.hero-title {
    font-size: 1.2em;
    opacity: 0.8;
}

.navbar {
    background-color: var(--clr-secondary-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-links a {
    color: white;
    margin: 0 15px;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    text-decoration: none;
    color: #ffd700;
}

.dark-mode-btn {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.card-section {
    background-color: var(--clr-card-bg-light);
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: var(--clr-primary-light);
    margin-bottom: 30px;
}

body.dark-mode .section-title {
    color: var(--clr-link-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-pic i {
    font-size: 6em;
    color: rgba(255, 255, 255, 0.6);
}

.about-text p {
    margin-bottom: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    transition: border-color 0.3s;
}

body.dark-mode .skill-card {
    border-color: #333;
}

.skill-card h3 {
    color: var(--clr-primary-light);
    margin-bottom: 10px;
}

body.dark-mode .skill-card h3 {
    color: var(--clr-link-light);
}

.progress-bar-container {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

body.dark-mode .progress-bar-container {
    background-color: #333;
}

.progress-bar {
    height: 100%;
    background: var(--clr-accent-progress);
    border-radius: 4px;
}

.html-progress {
    width: 102%;
}

.css-progress {
    width: 30%;
}

.js-progress {
    width: 40%;
}

.ps-progress {
    width: 80%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    text-align: center;
    padding: 20px;
    border-radius: 6px;
    background-color: var(--clr-background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark-mode .project-card {
    background-color: #222;
    box-shadow: none;
}

.project-icon-bg {
    background: var(--clr-accent-progress);
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon-bg i {
    font-size: 2.5em;
    color: white;
}

.project-card h4 {
    margin-bottom: 5px;
    font-size: 1.2em;
    color: var(--clr-primary-light);
}

body.dark-mode .project-card h4 {
    color: var(--clr-text-main-light);
}

.read-more-btn {
    background-color: var(--clr-primary-light);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

body.dark-mode .read-more-btn {
    background-color: var(--clr-link-light);
    color: #1c1c1c;
}

.read-more-btn:hover {
    background-color: #4d57c7;
}

.contact-subtext {
    text-align: center;
    margin-bottom: 25px;
    color: var(--clr-text-secondary-light);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 1.1em;
}

.contact-item i {
    margin-right: 8px;
    color: var(--clr-primary-light);
}

body.dark-mode .contact-item i {
    color: var(--clr-link-light);
}

.footer {
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    background-color: var(--clr-secondary-light);
    color: white;
}

.heart-icon {
    color: red;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        text-align: left;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    .nav-links {
        margin-bottom: 10px;
    }
}