/* ===== Color Palette =====
#1a1a1a (dark gray-black) 
#3d2a26 (deep brown) 
#5e1914 (dark red-brown) 
#934529 (warm brown-orange) 
#8b653a (earthy brown) 
#666666 (gray) 
*/

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

/* ===== Body ===== */
body {
    background: #3d2a26;
    color: #f5e6d3;
    line-height: 1.6;
}

/* ===== Navbar ===== */
header {
    background: #5e1914;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f4a300;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* ===== Sections ===== */
section {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
}

h2 {
    color: #f4a300;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 3px solid #934529;
    display: inline-block;
    padding-bottom: 0.3rem;
    text-transform: uppercase;
}

/* ===== About ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: justify;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #934529;
    flex-shrink: 0;
}

/* ===== Projects ===== */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #1a1a1a;
    border: 2px solid #934529;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-card a {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
    color: #f4a300;
    font-weight: bold;
}

/* ===== Certificates ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cert-grid img {
    width: 100%;
    border: 3px solid #934529;
    border-radius: 8px;
    background: #fff;
}

/* ===== Contact ===== */
#contact a {
    color: #f4a300;
    font-weight: bold;
}

.contact-intro {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #f5e6d3;
    text-align: center;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #1a1a1a;
    border: 2px solid #934529;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card img.contact-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 1rem;
    background: #5e1914;
    color: #fff;
    margin-top: 2rem;
}

footer a {
    color: #f4a300;
    text-decoration: none;
    font-weight: bold;
}

/* ===== 🍁 Falling leaves ===== */
#leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.leaf {
    position: absolute;
    top: -50px;
    opacity: 0.9;
    animation: fall linear forwards;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

html {
    scroll-padding-top: 20px;
}