* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    transition: background 0.5s, color 0.5s;
}

/* Light Mode */
body.light {
    background: #f5f6fa;
    color: #2d3436;
}

/* Dark Mode */
body.dark {
    background: #1e272e;
    color: #dfe6e9;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.5s;
}

body.light .navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark .navbar {
    background: #2d3436;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e67e22;
    transition: transform 0.3s;
}

.nav-image:hover {
    transform: scale(1.1);
}

.logo-text span {
    font-weight: 700;
}

.tagline {
    font-size: 0.8em;
    font-weight: 400;
    color: #b2bec3;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

body.light .nav-links a { color: #2d3436; }
body.dark .nav-links a { color: #dfe6e9; }

.nav-links a:hover {
    color: #e67e22;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

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

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #e67e22;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
}

.highlight {
    color: #ffdd57;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background: #d35400;
    transform: scale(1.05);
}

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

body.light .section h2 { color: #2d3436; }
body.dark .section h2 { color: #dfe6e9; }

.section h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #e67e22;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

body.light .skill-card {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark .skill-card {
    background: #2d3436;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.timeline .job {
    margin-bottom: 40px;
    padding: 20px;
    border-left: 4px solid #e67e22;
}

body.light .job { background: #ffffff; }
body.dark .job { background: #2d3436; }

.job h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.job p {
    font-style: italic;
    color: #b2bec3;
}

.job ul {
    list-style: square;
    margin-left: 20px;
    margin-top: 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.project-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.3s;
}

.portfolio-item:hover .overlay {
    top: 0;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-buttons {
    text-align: center;
    margin-top: 40px;
}

.portfolio-buttons h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.portfolio-buttons .btn {
    margin: 0 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

body.light .form-group input,
body.light .form-group textarea {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark .form-group input,
body.dark .form-group textarea {
    background: #2d3436;
    color: #dfe6e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.success-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background: #e67e22;
    color: white;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 40px 20px;
    transition: background 0.5s;
}

body.light footer { background: #dfe6e9; }
body.dark footer { background: #2d3436; }

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #e67e22;
    font-size: 1.5em;
    margin: 0 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #d35400;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 10px 20px;
    border-radius: 50%;
    background: #e67e22;
    color: white;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
    }

    body.light .nav-links { background: #ffffff; }
    body.dark .nav-links { background: #2d3436; }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .section {
        padding: 40px 15px;
    }

    .portfolio-buttons .btn {
        display: block;
        margin: 10px auto;
    }
}