/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    scroll-behavior: smooth;
}

body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode header {
    background-color: #252525;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f4a261;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
}

body.dark-mode .logo h1 {
    color: #f0f0f0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

body.dark-mode .nav-links a {
    color: #f0f0f0;
}

.nav-links a:hover {
    color: #f4a261;
}

.cv-download {
    background-color: #f4a261;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white !important;
    transition: all 0.3s;
}

.cv-download:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero-bg.jpg') no-repeat center center/cover;
    color: white;
}

body.dark-mode .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('hero-bg.jpg') no-repeat center center/cover;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Box Styles */
.about-box, .skills-box, .contact-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 900px;
    transition: all 0.3s ease;
}

body.dark-mode .about-box,
body.dark-mode .skills-box,
body.dark-mode .contact-box {
    background-color: #252525;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 6rem 2rem 4rem;
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: #333;
}

body.dark-mode .about h2 {
    color: #f0f0f0;
}

.about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #f4a261;
    margin: 10px auto 30px;
}

.about-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

body.dark-mode .about-box p {
    color: #ddd;
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
}

.skills h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: #333;
}

body.dark-mode .skills h2 {
    color: #f0f0f0;
}

.skills h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #f4a261;
    margin: 10px auto 30px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.skills-list li {
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #f4a261;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .skills-list li {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

.skills-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills-list i {
    color: #f4a261;
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: #333;
}

body.dark-mode .projects h2 {
    color: #f0f0f0;
}

.projects h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #f4a261;
    margin: 10px auto 30px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .project {
    background-color: #252525;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

body.dark-mode .project-img {
    border-bottom: 1px solid #444;
}

.project-content {
    padding: 1.5rem;
}

.project h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

body.dark-mode .project h3 {
    color: #f0f0f0;
}

.project p {
    margin-bottom: 1.5rem;
    color: #666;
}

body.dark-mode .project p {
    color: #ccc;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    padding: 0.5rem 1rem;
    background-color: #f4a261;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.project-links a:hover {
    background-color: #e67e22;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: #333;
}

body.dark-mode .contact h2 {
    color: #f0f0f0;
}

.contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #f4a261;
    margin: 10px auto 30px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

body.dark-mode .contact-icon {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

.contact-icon:hover {
    background-color: #f4a261;
    color: white;
    transform: translateY(-3px);
}

.contact-icon i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

body.dark-mode footer {
    background-color: #1a1a1a;
}

footer p {
    margin: 0.5rem 0;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4a5568;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

body.dark-mode .dark-mode-toggle {
    background: #f4a261;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f4a261;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e67e22;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #333;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s ease;
    }

    body.dark-mode .nav-links {
        background-color: #252525;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .contact-icons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-icon {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .about-box, .skills-box, .contact-box {
        padding: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}

/* ===== Skills Section - Progress Bars ===== */
.skills {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

body.dark-mode .skills {
    background-color: #1e1e1e;
}

.skills h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

body.dark-mode .skills h2 {
    color: #f0f0f0;
}

.skills h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #f4a261;
    margin: 10px auto 30px;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .skills-container {
    background-color: #252525;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill {
    margin-bottom: 1.5rem;
}

.skill:last-child {
    margin-bottom: 0;
}

.skill span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

body.dark-mode .skill span {
    color: #f0f0f0;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

body.dark-mode .progress-container {
    background-color: #333;
}

.progress-bar {
    height: 100%;
    background-color: #f4a261;
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
}

body.dark-mode .progress-bar {
    background-color: #e67e22;
}

.progress-bar::after {
    content: attr(data-percent);
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

body.dark-mode .progress-bar::after {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 3rem 1rem;
    }
    
    .skills h2 {
        font-size: 2rem;
    }
}
