/* Global */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0a0a0a, #1f1f1f);
    color: white;
    padding: 120px 20px;
    text-align: center;
}

/* Waffle Icon Anchor */
.menu-anchor {
    position: relative; /* anchor for popup */
    display: inline-block;
}

.waffle-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-top: 20px;
}

/* Dropdown Menu — now positioned directly under waffle icon */
.menu-popup {
    display: none;
    position: absolute;
    top: 50px; /* directly under waffle icon */
    left: 0;   /* aligns perfectly under icon */
    background: linear-gradient(135deg, #0a0a0a, #1f1f1f);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    padding: 15px 20px;
    z-index: 999;
}

.menu-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-popup li {
    margin: 12px 0;
}

.menu-popup a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.menu-popup a:hover {
    color: #007bff;
}

/* Sections */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}

/* Grid Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-weight: 500;
}

/* Skills Snapshot */
.skills-details {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skills-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Certifications */
.cert-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cert-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.cert-list .card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.cert-details {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    min-height: 200px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}

.contact-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Contact Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    width: 80%;
    height: 80%;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
}

.popup-profile {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 40px;
    right: 40px;
}

.close-btn {
    margin-top: 30px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
