@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef; 
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(31, 36, 45, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    font-size: 25px;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.links {
    display: flex;
    gap: 35px;
}

.link a {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    transition: .3s;
}

.link a:hover {
    color: var(--main-color);
}

.contact-btn a {
    background: var(--main-color);
    color: var(--second-bg-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.contact-btn a:hover {
    box-shadow: 0 0 10px var(--main-color);
}

.hamburg, .cancel {
    cursor: pointer;
    font-size: 25px;
    color: var(--text-color);
    display: none;
}


.dropdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--second-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    /* CHANGE THIS LINE */
    transform: translateY(-100%); /* Changed from -500px to -100% */
    
    transition: 0.5s ease-in-out;
    z-index: 99;
}

.dropdown .links {
    flex-direction: column;
    text-align: center;
}

/* --- Home Section --- */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.image img {
    width: 35vw;
    border-radius: 20%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.image img:hover {
    box-shadow: 0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.content h1 span {
    color: var(--main-color);
}

.typewriter {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

.typewriter span {
    color: var(--main-color);
}

.content p {
    font-size: 16px;
    margin: 20px 0 30px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    margin: 0 8px 30px 0;
    transition: .5s ease;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 16px;
    color: var(--second-bg-color);
    letter-spacing: 1px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .5s ease;
}

.btn button:hover {
    box-shadow: none;
}

/* --- Dashboard Section --- */
.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
}
.section-title span {
    color: var(--main-color);
}

.dashboard-grid, .skills-grid, .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.hub-card, .skill-category, .about-card, .objective-card {
    background: var(--second-bg-color);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: 0.5s ease;
}

.hub-card:hover, .skill-category:hover, .about-card:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.hub-card i, .skill-category h3 i {
    font-size: 50px;
    color: var(--main-color);
    margin-bottom: 15px;
}

.hub-card h3, .skill-category h3, .about-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.skill-category ul {
    text-align: left;
    padding-left: 20px;
}
.skill-category li {
    list-style: disc;
    margin: 5px 0;
}

/* --- About Socials --- */
.about-socials {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.about-socials a {
    color: var(--text-color);
    transition: 0.3s;
}
.about-socials a:hover {
    color: var(--main-color);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 991px) {
    .main-container {
        flex-direction: column;
        text-align: center;
    }
    .image img {
        width: 60vw;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container .links {
        display: none;
    }
    .hamburg {
        display: block;
    }
    .content h1 {
        font-size: 40px;
    }
    .typewriter {
        font-size: 24px;
    }
}
/* --- Certifications Section --- */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 2rem;
    padding: 20px;
}

.cert-card {
    background: var(--second-bg-color);
    border-radius: 15px;
    overflow: hidden; /* Image corners round karne ke liye */
    border: 1px solid transparent;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column; /* Image upar, text neeche */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cert-card:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
}

/* Image Box Styling */
.cert-img-box {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    overflow: hidden;
    position: relative;
    background: #000; /* Agar image fit na ho toh black bg dikhe */
}

.cert-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image ko box mein fit karega bina stretch kiye */
    transition: 0.5s ease;
}

.cert-card:hover .cert-img-box img {
    transform: scale(1.1); /* Hover karne pe zoom effect */
}

/* Overlay Styling (View Link) */
.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay a {
    color: #fff;
    background: var(--main-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    color: #1f242d; /* Text color inside button */
}

/* Text Info Styling */
.cert-info {
    padding: 20px;
    text-align: center;
}

.cert-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.cert-info p {
    font-size: 14px;
    color: #bdbdbd;
}

.cert-info p span {
    color: var(--main-color);
    font-weight: 500;
}