:root {
    --bg-color: #f9f9f9;
    --text-color: #2d2d2d;
    --card-bg: #ffffff;
    --accent-color: #1e90ff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --hero-bg: linear-gradient(135deg, #e6f0fa, #ffffff);
}

[data-theme="light"] {
    --bg-color: #f9f9f9;
    --text-color: #2d2d2d;
    --card-bg: #ffffff;
    --accent-color: #1e90ff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --hero-bg: linear-gradient(135deg, #e6f0fa, #ffffff);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --accent-color: #00ccff;
    --header-bg: rgba(26, 26, 26, 0.95);
    --hero-bg: linear-gradient(135deg, #0d1b2a, #1a1a1a);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.mode-toggle {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.3rem;
}

.moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: inline;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--hero-bg);
    padding: 0 2rem;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3.8rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-button {
    padding: 0.9rem 2.5rem;
    background: var(--accent-color);
    color: var(--card-bg);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3);
}

.section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}

.skill-card, .project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 0 0.5rem;
    flex: 0 0 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.skill-card ul li {
    margin: 0.7rem 0;
    display: flex;
    align-items: center;
}

.skill-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.7rem;
    vertical-align: middle;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.carousel-control {
    background: var(--accent-color);
    color: var(--card-bg);
    border: none;
    font-size: 1.6rem;
    padding: 0.6rem;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-control:hover {
    opacity: 1;
}

.carousel-control.prev {
    margin-right: 1.5rem;
}

.carousel-control.next {
    margin-left: 1.5rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    z-index: 1;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    align-items: center;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.duration {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

.blog-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.blog-links li a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-links li a:hover {
    color: var(--text-color);
}

footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--card-bg);
        width: 100%;
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .carousel {
        max-width: 100%;
    }

    .skill-card, .project-card {
        flex: 0 0 250px;
    }

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 2.5rem;
    }

    .timeline-dot {
        left: 15px;
        top: 0;
    }

    .timeline-content {
        width: 90%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1.5rem;
    }
}