/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

.container {
    width: 80%;
    margin: auto;
    text-align: center;
}

h2 {
    text-align: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    font-size: 14px;
    box-sizing: border-box;
}

.navbar .container {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}

.navbar .logo {
    margin-left: 0;
    /* flex: 1; */
    font-size: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

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

#theme-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 120px;
    padding: 60px 20px;
    background: linear-gradient(to right, #4B70F1, #6a85f3);
    color: white;
}

.mainPhoto {
    width: 200px;
    height: auto;
    border-radius: 50%;
    margin-top: 20px;
}

/* Experience Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

.skill-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.dark-mode .skill-card {
    background: #333;
    color: white;
}

.skill-card i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.skill-card:hover {
    transform: scale(1.1);
    background: #4B70F1;
    color: white;
}

/* Projects Section */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 60px auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .modal-content {
    background-color: #2c2c2c;
    color: #fff;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #4B70F1;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-button:hover {
    transform: scale(1.2);
}

.modal-content .section {
    padding: 10px 0;
}

.modal-content .tags {
    justify-content: flex-start;
}

/* Project Section Grid */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* Project Card Container */
.project-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 320px;
}

.dark-mode .project-card {
    background: #333;
    color: white;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Header inside card */
.card-header {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card-header img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.card-header h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.card-header p {
    margin: 0;
    font-size: 14px;
    color: inherit;
}

/* Toggle icon (+ or -) */
.toggle-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-weight: bold;
    font-size: 20px;
    background-color: #4B70F1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    transition: background 0.3s, transform 0.3s;
}

.toggle-icon:hover {
    background-color: #6a85f3;
    transform: scale(1.1);
}

/* Hidden Body (Collapsible) */
.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.card-body.open {
    max-height: 600px;
    /* Enough height to show content */
}

/* Inside Body Sections */
.section {
    padding: 12px 18px;
    text-align: left;
}

.section h4 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #4B70F1;
}

.dark-mode .section h4 {
    color: #6a85f3;
}

.section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Tags (Tech Stack) */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #4B70F1;
    color: white;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    transition: background 0.3s;
}

.tag:hover {
    background: #6a85f3;
}

.dark-mode .tag {
    background: #6a85f3;
    color: white;
}

/* GitHub Link Styling */
.section a {
    color: #4B70F1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.section a:hover {
    color: #6a85f3;
}

/* Optional: Adjust title of the section */
.title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 28px;
}

/* Contact Section */
.contact .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact .social-links a {
    font-size: 24px;
    color: #4B70F1;
    transition: transform 0.3s;
}

.contact .social-links a:hover {
    transform: scale(1.2);
    color: #6a85f3;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    text-decoration: white;
}

.footer a {
    color: white;
    text-decoration: none;

}

.footer a:hover {
    text-decoration: underline;

}

.footer a:visited {
    color: white;

}