:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --light-color: #f8fafc;
    --gray-color: #e2e8f0;
    --dark-color: #1e293b;
    --text-color: #334155;
    
    --transition-speed: 0.3s;
    --animation-speed: 0.5s;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
    display: block;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.settings {
    display: flex;
    gap: 1rem;
}

.settings button {
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--gray-color);
    transition: background-color var(--transition-speed);
}

.settings button:hover {
    background-color: var(--accent-color);
    color: white;
}

.slider-container {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
    transition: all 1s ease;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.bg-1 {
    background-image: url('../assets/images/computer.png');
    background-position: center;
    background-size: cover;
}

.bg-2 {
    background-image: url('../../assets/images/lego.jpg');
}

.bg-3 {
    background-image: url('../assets/images/sky.png');
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.feature {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    text-align: center;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature .skill-bar {
    height: 10px;
    background: linear-gradient(90deg, #4a90e2 0%, #67b26f 100%);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.feature .skill-info span {
    display: none; 
}

.feature .skill-bar.animate {
    animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--skill-level);
    }
}

.about-hero {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 2;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: url('https://source.unsplash.com/random/600x600/?portrait');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skills {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-bars {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background-color: var(--gray-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    border-radius: inherit;
    transition: width 1s ease;
}

.light-theme .skill-level {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.dark-theme .skill-level {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.experience,
.education {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    margin-top: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--gray-color);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0.5rem;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.education-timeline {
    position: relative;
    margin: 2rem 0;
    padding: 2rem 0;
}
.education-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.education-timeline .timeline-item {
    position: relative;
    width: 45%;
    padding: 1rem;
    margin-bottom: 2rem;
}
.education-timeline .timeline-item.left {
    left: 0;
    text-align: right;
}
.education-timeline .timeline-item.right {
    left: 55%;
    text-align: left;
}
.education-timeline .timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.certificate-timeline {
    position: relative;
    margin: 2rem 0;
    padding: 2rem 0;
}
.certificate-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.certificate-timeline .timeline-item {
    position: relative;
    width: 45%;
    padding: 1rem;
    margin-bottom: 2rem;
}
.certificate-timeline .timeline-item.left {
    left: 0;
    text-align: right;
}
.certificate-timeline .timeline-item.right {
    left: 55%;
    text-align: left;
}
.certificate-timeline .timeline-date {
    position: absolute;
    top: 0;
    background-color: var(--secondary-color);
}
.certificate-timeline .timeline-item.left .timeline-date {
    right: -35%;
}
.certificate-timeline .timeline-item.right .timeline-date {
    left: -35%;
}

.certificates {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.certificates .timeline-content {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certificates .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .certificate-timeline::before {
        left: 20px;
    }
    .certificate-timeline .timeline-item.left,
    .certificate-timeline .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 45px;
    }
    .certificate-timeline .timeline-date {
        left: 20px !important;
        right: auto !important;
        top: 0;
        transform: none;
        position: relative;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

.certificates {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certificates-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.certificate-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .certificate-item {
    background-color: var(--surface-color);
}

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

.certificate-content {
    padding: 1.5rem;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.certificate-year {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dark-theme .certificate-year {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .certificate-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .certificate-year {
        align-self: flex-start;
    }
}

.projects-hero {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: var(--gray-color);
    position: relative;
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-speed);
}

.project-card:hover .project-logo {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background-color: var(--gray-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color var(--transition-speed);
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta {
    padding: 4rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    margin-top: 4rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--light-color);
}

.contact-hero {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.map-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.map {
    margin-top: 2rem;
    background-color: var(--gray-color);
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: bold;
    color: #888;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--animation-speed), transform var(--animation-speed);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1s;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--surface-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--gray-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    padding: 0.5rem 0;
    margin-left: 1.5rem;
}

.slide-content {
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.reduced-animations * {
    transition: none !important;
    animation: none !important;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .slide-content {
        max-width: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    
    .feature {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    .about-hero {
        flex-direction: column-reverse;
    }
    
    .about-content, .about-image {
        width: 100%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-date {
        left: 20px;
        top: 0;
        transform: none;
        position: relative;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .settings {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .slider-container {
        height: 60vh;
    }
    
    .slide-content {
        max-width: 90%;
    }
    
    .settings button {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

.download-cv-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.download-cv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.download-cv:hover {
    transform: translateY(-3px);
}

.download-cv:before {
    content: "📄";
    font-size: 1.2rem;
}

.download-cv-container {
    display: flex;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.download-cv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-cv:before {
    content: "📄";
    font-size: 1.2rem;
}

.experience,
.education {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-list,
.education-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}



.experience-item,
.education-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dark-theme .experience-item,
.dark-theme .education-item {
    background-color: var(--surface-color);
}

.experience-item:hover,
.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.experience-date,
.education-date {
    flex-shrink: 0;
    width: 140px;
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.experience-content,
.education-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.education-list {
    position: relative;
}

.education-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.education-item {
    width: 45%;
}

.education-item.left {
    align-self: flex-start;
    margin-right: auto;
}

.education-item.right {
    align-self: flex-end;
    margin-left: auto;
}

@media (max-width: 768px) {
    .education-list::before {
        left: 140px;
        transform: none;
    }
    
    .education-item {
        width: 100%;
    }
    
    .education-item.left,
    .education-item.right {
        align-self: auto;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .experience-date,
    .education-date {
        width: 100px;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .experience-list::before,
    .education-list::before {
        left: 100px;
    }
    
    .education-list::before {
        left: 100px;
    }
}

.project-hero {
    padding: 4rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.project-subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--secondary-color);
}

.project-image-main {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.project-details {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-info, 
.project-technologies, 
.project-features, 
.project-challenges,
.project-outcomes,
.project-links,
.project-gallery {
    margin-bottom: 3rem;
}

.tech-list, .feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-list li {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    list-style-type: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    width: 100%;
    list-style-type: none;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.challenge-item {
    margin-bottom: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.project-links .links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.project-navigation {
    padding: 2rem;
    border-top: 1px solid var(--gray-color);
    margin-top: 2rem;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.project-nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    display: inline-block;
    min-width: 140px;
    text-align: center;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.project-nav-link:hover {
    background-color: var(--gray-color);
    border-color: var(--primary-color);
}

.project-nav-link.prev::before {
    content: "← ";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.project-nav-link.next::after {
    content: " →";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.project-nav-link.prev {
    padding-left: 2rem;
}

.project-nav-link.next {
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .project-links .links,
    .project-nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-back {
        width: 100%;
        text-align: center;
    }
}

.drawing-container {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.canvas-wrapper {
    position: relative;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
}

#drawing-canvas {
    display: block;
    background-color: white;
    cursor: crosshair;
}

.drawing-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-picker::-webkit-color-swatch {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.brush-size {
    width: 100px;
}

.drawing-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.dark-theme #drawing-canvas {
    background-color: #f8f8f8;
}

@media (max-width: 600px) {
    .canvas-wrapper {
        width: 100% !important;
        height: auto !important;
    }
    
    #drawing-canvas {
        width: 100% !important;
        height: auto !important;
    }
    
    .drawing-controls {
        flex-direction: column;
        align-items: center;
    }
}

.wordle-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

.wordle-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 2rem;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.wordle-tile {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.wordle-tile.filled {
    border-color: var(--primary-color);
}

.wordle-tile.shake {
    animation: shake 0.5s;
}

.wordle-tile.flip {
    transform: rotateX(90deg);
    transition: transform 0.5s;
}

.wordle-tile.flip-back {
    transform: rotateX(0deg);
    transition: transform 0.5s;
}

.wordle-tile.correct {
    background-color: #4ade80; 
    color: white;
    border-color: #4ade80;
}

.wordle-tile.present {
    background-color: #facc15;
    color: white;
    border-color: #facc15;
}

.wordle-tile.absent {
    background-color: #333333;
    color: white;
    border-color: #333333;
}

.dark-theme .wordle-tile.correct {
    background-color: #16a34a; 
}

.dark-theme .wordle-tile.present {
    background-color: #ca8a04; 
}

.dark-theme .wordle-tile.absent {
    background-color: #1c1c1c; 
}

.keyboard-container {
    max-width: 500px;
    margin: 0 auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    gap: 4px;
}

.keyboard-key {
    min-width: 40px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--gray-color);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.keyboard-key:hover {
    opacity: 0.9;
}

.keyboard-key.wide {
    flex: 1.5;
    padding: 0 8px;
}

.keyboard-key.correct {
    background-color: #4ade80;
    color: white;
}

.keyboard-key.present {
    background-color: #facc15;
    color: white;
}

.keyboard-key.absent {
    background-color: #333333;
    color: white;
}

.dark-theme .keyboard-key.correct {
    background-color: #16a34a;
}

.dark-theme .keyboard-key.present {
    background-color: #ca8a04;
}

.dark-theme .keyboard-key.absent {
    background-color: #1c1c1c;
}

.game-message {
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-message.success {
    background-color: rgba(74, 222, 128, 0.2);
    color: #16a34a;
}

.game-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.game-message.show {
    opacity: 1;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.stats-container {
    margin: 2rem 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.stat-box {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

@keyframes shake {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.delay-6 {
    transition-delay: 1.2s;
}
