:root {
    --bg-dark: #050505;
    --accent: #ff003c;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Josefin Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* --- Layout --- */
.section {
    min-height: 70vh;
    padding: 100px 10%;
    display: none;
    /* Controlled by JS for navigation */
}

.section.active {
    display: block;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

#hamburger {
    display: none;
    cursor: pointer;
    z-index: 1;
}

/* --- Home Section --- */
#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--accent);
    min-height: 1.5em;
}

.btn-premium {
    margin-top: 30px;
    padding: 15px 35px;
    background: transparent;
    border: 2px solid var(--accent);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s;
    display: inline-block;
}

.btn-premium:hover,
.skill-tag:hover {
    background: var(--accent);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.5);
    transform: translateY(-5px);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 5px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    cursor: default;
    transition: 0.4s;
}

/* --- Certification Section --- */
.proj-grid,
.cert-intern-grid,
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.proj-card {
    text-decoration: none;
    color: var(--text-primary);
}

.proj-card,
.cert-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.proj-card img,
.certi-pdf,
.certi-image {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    /* Prevents scrolling inside the card */
    border: none;
    object-fit: cover;
    transition: 0.5s;
}

.proj-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.proj-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    padding: 20px;
    text-align: center;
}

.proj-overlay h3,
.proj-overlay p {
    font-weight: bold;
}

.proj-card:hover .proj-overlay {
    opacity: 1;
}

/* --- Contact Form --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
}

/* --- Footer --- */
footer {
    padding: 50px 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    header {
        padding: 10px 20px;
        border-radius: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    #hamburger {
        display: block;
    }

    nav ul {
        position: fixed;
        top: -20px;
        right: 0;
        height: 100vh;
        width: 14rem;
        padding-top: 6rem;
        border-radius: 20px;
        background: rgba(40, 40, 40, 0.95);
        backdrop-filter: blur(54px);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        /* Start off-screen */
        transform: translateX(17rem);
        transition: transform 0.4s ease-in-out;
        z-index: 0;
    }

    nav ul.active {
        /* Slide in when active */
        transform: translateX(38px);
    }

    nav ul li a {
        font-size: 1.5rem;
    }
}