* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0f0f0f;
    color: white;
    scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */

header {
    position: fixed;
    width: 100%;
    padding: 18px 8%;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    backdrop-filter: blur(6px);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav ul li {
    white-space: nowrap;
}
/* Logo */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Nav links */
nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
}

/* Underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #6b705c;
    transition: width 0.35s ease;
}

nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: #a5a58d;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.hero-text {
    max-width: 55%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #6b705c;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 10% 60px 10%;
    background: linear-gradient(to right, #0f0f0f, #1a1a1a);
}


.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
}

.hero h2 {
    font-weight: 300;
    margin: 15px 0;
}

.btn {
    padding: 12px 28px;
    background: #6b705c;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;

    display: inline-block;
    width: fit-content;
    align-self: flex-start;

    transition: 0.3s ease;
}

.btn:hover {
    background: #a5a58d;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


section {
    padding: 100px 10%;
}

.light {
    background: #eae6df;
    color: black;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Center heading */
.center-title {
    text-align: center;
    margin-bottom: 15px;
}

/* Horizontal image layout */
.image-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Smaller clean images */
.image-row .cert-img {
    width: 100%;
    max-width: 220px;   /* same as other certification images */
    border-radius: 15px;
    border: 2px solid #6b705c;
}


.grid div {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.light .grid div {
    background: white;
}

.card {
    background: #1a1a1a;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.light .card {
    background: white;
}

footer {
    text-align: center;
    padding: 20px;
    background: #000;
}
.edu-list {
    margin-top: 10px;
    padding-left: 20px;
}

.edu-list li {
    margin-bottom: 5px;
    font-size: 14px;
}

@media(max-width: 900px) {

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
}
.cert-img {
    width: 100%;
    max-width: 220px;
    margin-top: 15px;
    border-radius: 15px;
    border: 2px solid #6b705c;
    display: block;
}

/* Keep certification cards consistent */
#certifications .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;   /* Keeps non-image ones same as before */
}

/* Space between title and image */
#certifications .card h3 {
    margin-bottom: 10px;
}

/* Image spacing */
#certifications .cert-img {
    margin-top: 10px;
}
#certifications .grid {
    align-items: start;
}
#certifications .center-card {
    grid-column: 1 / -1;   /* Takes full row */
    justify-self: center;  /* Centers the card */
    max-width: 350px;      /* Keeps it from stretching */
}
.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
/* Smooth transitions everywhere */
* {
    transition: all 0.3s ease;
}
nav a {
    position: relative;
}

/* underline animation */
nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #6b705c;
    transition: width 0.3s ease;
}

/* hover effect */
nav a:hover::after{
    width: 100%;
}
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #6b705c;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}
.card {
    background: #1a1a1a;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.cert-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cert-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(107,112,92,0.6);
}
.hero-image img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(107,112,92,0.5);
}
section {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

section:nth-child(odd) {
    animation-delay: 0.2s;
}

section:nth-child(even) {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Share Button Styling */
.share-box {
    margin-left: 20px;
}

.share-btn {
    padding: 8px 18px;
    background: transparent;
    border: 2px solid #6b705c;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #6b705c;
    box-shadow: 0 5px 15px rgba(107,112,92,0.5);
    transform: translateY(-2px);
}
/* Force empty gap after AI Workshop */
#certifications .grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Move Data Analysis to next row */
#certifications .move-down {
    grid-column: 3;
    grid-row: 2;
}
/* Dark Beige Background for Certifications */
#certifications {
    background: #cecbc4;   /* beige */
    color: black;
}

/* Resume Section Professional Styling */

.resume-heading {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 30px;
}

.resume-card {
    max-width: 600px;
    margin: auto;
    text-align: center;
    padding: 35px;
    border-radius: 10px;
}

.resume-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.resume-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
