/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #090909;
    color: #f8f4f4;
    transition: 0.3s ease;
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #0e0e0e;    
    box-shadow: #0ea5e9 0px 4px 4px 0px;
}

.logo {
    color: #0ea5e9;
    font-size: 30px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #38bdf8;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ==================home =========== */
.home {
    width: 80%;
    height: 100vh;
    margin: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.my_photo {
    width: 40%;
    height: 80%;
    border-radius: 50%;
    overflow: hidden;
    border: #0ea5e9 5px solid;
}

.my_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text {
    width: 50%;
}

/* ========== about ========== */
.about {
    padding: 80px 10%;
    text-align: center;
    width: 60%;
    margin: auto;
    height: 70vh;
}

.about h2, .skills h2, .project h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #0ea5e9;
}

.about p {
    line-height: 1.6;
    font-size: 20px;
    letter-spacing: 1px;
    word-spacing: 1px;
}

/* ========== SKILLS ========== */
.skills, .project {
    width: 50%;
    height: 60vh;
    margin: auto;
    text-align: center;
}

.skills .icon {
    color: #0ea5e9;
    font-size: 30px;
}

.skills-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    margin-top: 3rem;
}

.skills-list li {
    padding: 30px 40px;
    background: #090909;
    border-radius: 10px;
    border: 2px solid #0ea5e9;
    box-shadow: 0 4px 15px #0ea5e9;
    transition: 0.3s ease;
    cursor: pointer;
    color: #0ea5e9;
}

.skills-list li:hover {
    transform: scale(1.1);
    border-color: #0ea5e9;
}

/* ========== PROJECT CARD ========== */
.project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.card {
    width: 33%;
    border: 2px solid #0ea5e9;
    box-shadow: 0 4px 15px #0ea5e9;
    border-radius: 5px;
    overflow: hidden;
    padding-bottom: 5px;
    transition: 0.3s ease;
}

.card img {
    width: 100%;
    height: auto;
}

.card:hover {
    transform: scale(1.03);
}
.card h3 {
    margin: 15px;
}
.project-info {
    padding: 20px;
}

.project-buttons a {
    display: inline-block;
    margin: 10px 5px;
    padding: 8px 15px;
    background: #38bdf8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.project-buttons a:hover {
    background: #0ea5e9;
}

/* ========== CONTACT ========== */
.social-links a {
    color: white;
    text-decoration: none;
    font-size: 30px;
    padding: 20px;
}

/* ========== FOOTER ========== */
footer {
    background: #121213;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ========== FADE IN ANIMATION ========== */
.fade-in {
    animation: fadeIn 1.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== DARK MODE ========== */
.dark-mode {
    background-color: #0f172a;
    color: white;
}

.dark-mode .section h2 {
    color: white;
}

.dark-mode .skills-list li,
.dark-mode .experience-card,
.dark-mode .project-card {
    background: #1e293b;
    color: white;
}

.contaner {
    height: 90vh;
    margin-top: 3rem;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and smaller screens (768px and below) */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }

    .logo {
        font-size: 24px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0e0e0e;
        padding: 20px 0;
        gap: 15px;
        box-shadow: #0ea5e9 0px 4px 4px 0px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .home {
        width: 90%;
        height: auto;
        flex-direction: column;
        padding: 50px 0;
    }

    .my_photo {
        width: 60%;
        height: auto;
        margin-bottom: 30px;
    }

    .text {
        width: 100%;
    }

    .text h1 {
        font-size: 28px;
    }

    .about, .skills, .project {
        width: 90%;
        padding: 50px 5%;
        height: auto;
    }

    .about h2, .skills h2, .project h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .about p {
        font-size: 16px;
    }

    .skills-list {
        gap: 20px;
    }

    .skills-list li {
        padding: 20px 30px;
        font-size: 14px;
    }

    .project-container {
        flex-direction: column;
        gap: 30px;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }

    .social-links a {
        font-size: 24px;
        padding: 15px;
    }

    .education-item h3 {
        font-size: 18px;
    }

    .education-item p {
        font-size: 14px;
    }
}

/* Mobile screens (480px and below) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .home {
        width: 95%;
        padding: 30px 0;
    }

    .my_photo {
        width: 70%;
    }

    .text h1 {
        font-size: 24px;
    }

    .about, .skills, .project {
        width: 95%;
        padding: 40px 5%;
    }

    .about h2, .skills h2, .project h2 {
        font-size: 20px;
    }

    .about p {
        font-size: 14px;
    }

    .skills-list {
        gap: 15px;
    }

    .skills-list li {
        padding: 15px 20px;
        font-size: 12px;
    }

    .card {
        max-width: 100%;
    }

    .social-links a {
        font-size: 20px;
        padding: 10px;
    }

    .education-item h3 {
        font-size: 16px;
    }

    .education-item p {
        font-size: 12px;
    }

    footer {
        padding: 15px;
        font-size: 14px;
    }
}