/* ---------------- Reset & Base ---------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f5f7fb;
    color: #222;
    
}

/* ---------------- Dark Mode ---------------- */

.theme-checkbox {
    display: none;
}

.theme-checkbox:checked ~ .page-wrapper {
    background: #121212;
    color: #eee;
}



.theme-checkbox:checked ~ .page-wrapper .card,
.theme-checkbox:checked ~ .page-wrapper .timeline-content {
    background: #222;      
    color: #eee;           
    border-color: #4f46e5;
}

.theme-checkbox:checked ~ .page-wrapper .contact-form input,
.theme-checkbox:checked ~ .page-wrapper .contact-form textarea  
{
    background: #222;
    color: #eee;
}



.theme-checkbox:checked ~ .page-wrapper .section
{
        background: #1e1e1e;
}

.theme-checkbox:checked ~ .page-wrapper .alt-bg {
    background: #1a1a1a;
}

.theme-checkbox:checked ~ .page-wrapper .navbar {
    background: #1a1a1a;
}


.page-wrapper {
    min-height: 100vh;
    background: #f5f7fb;
    
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #4f46e5;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

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

.theme-label {
    width: 20px;
    height: 20px;
    margin-left: 20px;
}
.theme-label::before {
    content: "🌙";
}

.theme-checkbox:checked ~ .page-wrapper .theme-label::before {
    content: "☀️";
}

.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}

.hero-content {
    max-width: 500px;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #4f46e5;

    object-fit: cover;   
    object-position: center;
}

.hero h1 {
    font-size: 36px;
}

.hero h2 {
    color: #4f46e5;
    margin: 10px 0;
}

.hero p {
    color: #555;
    margin-bottom: 20px;
}



.btn {
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}



.btn-primary:hover {
    background: #4338ca;
}


.section {
    padding: 70px 10%;
    background: #fff;
}

.alt-bg {
    background: #eef1ff;
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.section-text {
    max-width: 700px;
    margin: auto;
    text-align: center;
    color: #555;
}


.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    background: #4f46e5;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;

}


.card-grid {
    display: grid;
    gap: 25px;
}
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
   
}



.timeline {
    max-width: 800px;
    margin: auto;
}

.timeline-item {
    margin-bottom: 30px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-left: 4px solid #4f46e5;
    border-radius: 5px;
}

.company {
    font-size: 14px;
    color: #666;
}



.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4f46e5;
}


footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}

/* we use keyframes to define animation*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*write forwards to make sure element doestn reset and  the end of animation*/
.fade-in-up {
    animation: fadeUp 1s ease forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideLeft 1s ease forwards;
}


@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }
}
