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

body {
    background: #f4f6fb;
    color: #333;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}
.navbar {
    animation: 0.5s ease forwards;
}
@keyframes anime {
    from {
        opacity: 0;
        transform: translate(-50%,-40px);
    }
    to {
       opacity: 1;
       transform: translate(-50%,0);
    }
}
.navbar a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.navbar a:hover {
    color: #4070f4;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 8%;
    min-height: 100vh;
    gap: 40px;
}

/* Make both sides take equal space */
.home-content {
    flex: 1;
}

.home-img {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #4070f4;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover {
    background: #2f5bd3;
}
.circle {
    width: 260px;
    height: 260px;
    background: #4070f4;
    border-radius: 50%;
    position: absolute;
    z-index: -1;
}

.home-img img {
    width: 260px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #4070f4;    
}

.about-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-container img {
    width: 250px;
    border-radius: 10px;
}

/* Skills */
.skill {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.bar {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.progress {
    height: 100%;
    background: #4070f4;
    border-radius: 5px;
}

.html { width: 95%; }
.css { width: 85%; }
.js { width: 50%; }

/* Exercises Section */
.exercise-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Card */
.exercise-card {
    background: white;
    padding: 18px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid #ddd;    
    transition: 0.3s ease;
    margin-bottom: 20px;
    
}

.exercise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Card Title */
.exercise-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Button */
.exercise-card button {
    margin-top: 15px;
    padding: 10px 18px;
    background: #4070f4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s ease;
}

.exercise-card button:hover {
    background: #2f5bd3;
}

/* Input */
.exercise-card input {
    width: 100%;
    padding: 10px;   /* fixed typo */
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.3s ease;
}

.exercise-card input:focus {
    border-color: #4070f4;
    box-shadow: 0 0 0 3px rgba(64,112,244,0.15);
}

/* Contact */
.contact-form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
}

.dark mode {
    background-color: black;
    
    
}

.dark-mode {
    background-color: #111;
    color: white;
}

.dark-mode .exercise-card {
    background-color: #222;
    border: 1px solid #444;
}