body {
    font-family: 'Satoshi', sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0e1117;
    color: #ffffff;
}

body.light {
    background: #ffffff;
    color: #0e1117;
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: transparent;
}

a {
    text-decoration: none;
    color: #3b82f6;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

#toggle-theme {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.intro,
.skills,
.about,
.projects,
.footer {
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    margin: auto;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    color: #3b82f6;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h2 span {
    color: #3b82f6;
}

.buttons {
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    margin: 0.5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-secondary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
}

.icon {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.metrics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2.5rem;
}

.profile img {
    width: 200px;
    object-fit: cover;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    margin-top: 3.5rem;
}

.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 2rem;
}

/* Optional: make card full-width on tiny screens */
@media (max-width: 480px) {
    .card-glass {
        width: 100%;
    }
}


.card-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    max-width: 250px;
    margin: 1rem auto;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card-glass-2 {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem;
    max-width: 250px;
    margin: 1rem auto;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card-glass-3 {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.7rem;
    max-width: 200px;
    margin: 1rem auto;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background-color: #3b82f6;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: bold;
}

.year {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.55rem;
}

.card-title {
    font-size: 1.0rem;
    margin: 0.5rem 0;
}

.card-desc {
    font-size: 0.65rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tools-used {
    margin: 1.5rem 0;
    text-align: center;
}

.tools-used h4 {
    font-size: 1rem;
    margin-bottom: 1.0rem;
    text-align: center;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.tools-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}


.project img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.footer {
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}