/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #2a303c;
    color: #f5f5f5;
    line-height: 1.6;
    padding-top: 80px;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: #1f252f;
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-name {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links a {
    color: white;
    font-size: 1rem;
    padding: 10px 15px;
    text-decoration: none;
    transition: background 0.3s;
    border-radius: 8px;
}

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

.active {
    font-weight: bold;
}

/* Hero Section */
.hero {
    background-color: #3a414d;
    padding: 3rem;
}

/* Profile Card */


.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.card-content {
    text-align: left;
}

/* Mini Cards */
.mini-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 2rem auto;
}

.mini-card {
    background-color: #343b47;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    width: 180px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.mini-card h3 {
    font-size: 1rem;
    color: #681ce4;
    margin-bottom: 5px;
}

/* Larger Cards */
.card {
    background-color: #1f252f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    max-width: 900px;
}

.toggle-skills-btn {
    margin: 10px auto;     
  
}

.list {
    text-align: left;
    padding-left: 20px;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skills-grid2 {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skill {
    background-color: #343b47;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    width: 250px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #1f252f;
    color: white;
}

/* Center Button */
.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* CV Download Button */
.btn-download {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 1rem auto;
    transition: background 0.3s ease-in-out;
}

.btn-download img {
    width: 20px;
}

.btn-download:hover {
    background-color: #4e0db6;
}

/* Large Education Card */
.large-card {
    max-width: 900px;
}

.large-mini-card {
    padding: 1.5rem;
    width: 100%;
}

/* Technologies Grid */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.tech-card {
    background-color: #343b47;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    width: 150px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.tech-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tech-card p {
    margin-top: 10px;
    font-weight: bold;
    color: white;
}

/* Portfolio Section */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* Project Card */
.project-card {
    background-color: #343b47;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Project Content */
.project-content {
    margin-top: 10px;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #681ce4;
    margin-bottom: 8px;
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.project-content time {
    display: block;
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

/* View Project Link */
.project-content a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #681ce4;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.project-content a:hover {
    background-color: #4e0db6;
}





/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 2rem auto;
    max-width: 900px;
}

/* Profile Card */
.profile-card {
    background-color: #1f252f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 45%;
    text-align: center;
}

.btn-toggle {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 1rem auto;
    transition: background 0.3s ease-in-out;
}

.btn-toggle:hover {
    background-color: #0056b3;
}


.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1rem;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Contact Form Card */
.contact-form-card {
    background-color: #1f252f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 45%;
    text-align: left;
}

.contact-form-card h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #343b47;
    color: #f5f5f5;
    font-size: 1rem;
}

.btn {
    display: block;
    width: 100%;
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-card,
    .contact-form-card {
        width: 90%;
    }
}


/* Main Profile Card Styles */
.main-profile-card {
    background-color: #1f252f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.main-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.main-card-content {
    text-align: left;
}

.main-card-content h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #f5f5f5;
}

.main-card-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .main-profile-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .main-profile-img {
        width: 120px;
        height: 120px;
    }
}
.error {
    margin-top: 5px;
    display: block;
}
