/* Official Dracula Theme Palette */
:root {
    --bg: #282a36;
    --current-line: #44475a;
    --fg: #f8f8f2;
    --comment: #6272a4;
    --cyan: #8be9fd;
    --green: #50fa7b;
    --orange: #ffb86c;
    --pink: #ff79c6;
    --purple: #bd93f9;
    --red: #ff5555;
    --yellow: #f1fa8c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header & Avatar Styling */
header {
    margin-bottom: 3rem;
    border-bottom: 1px dashed var(--comment);
    padding-bottom: 1.5rem;
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    margin-bottom: 1rem;
    object-fit: cover;
    /* Positioning control: Adjust focal alignment [Horizontal, Vertical]
       Values can be percentages (e.g., 50% 20% zooms/shifts up towards the face)
       or keywords like center, top, bottom. */
    object-position: center 50%;
}

.prompt {
    color: var(--pink);
    font-weight: bold;
}

.prompt::before {
    content: "λ ";
    color: var(--green);
}

h1 {
    color: var(--purple);
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.subtitle {
    color: var(--comment);
    font-style: italic;
}

/* Section Layouts */
section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--cyan);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

h2::before {
    content: "# ";
    color: var(--comment);
}

p {
    margin-bottom: 1rem;
    color: var(--fg);
}

/* Project Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background-color: var(--current-line);
    border: 1px solid transparent;
    border-radius: 6px;
    overflow: hidden; /* Ensures the image respects the card border radius */
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

/* Responsive Project Images */
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover; /* Crops image cleanly inside the space */
    border-bottom: 1px solid var(--comment);
}

.card-content {
    padding: 1.2rem;
}

.card h3 {
    color: var(--orange);
    margin-bottom: 0.5rem;
}

/* Badges */
.tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg);
    color: var(--yellow);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--comment);
}

/* Links */
a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--pink);
}

.social-links a {
    margin-right: 1.5rem;
    font-weight: bold;
}

/* Navigation Menu styling */
nav {
    margin-bottom: 1.5rem;
}

nav a {
    color: var(--comment);
    text-decoration: none;
    font-weight: bold;
    margin-right: 1.5rem;
}

nav a:hover, nav a.active {
    color: var(--green);
    border-bottom: 1px solid var(--green);
}

/* Elegant Embedded PDF Container */
.resume-container {
    width: 100%;
    height: 800px; /* Gives the PDF breathing room */
    border: 1px solid var(--comment);
    border-radius: 6px;
    background-color: var(--current-line);
    overflow: hidden;
    margin-bottom: 2rem;
}

.pdf-embed {
    width: 100%;
    height: 100%;
}

/* Fallback message style for mobile users */
.pdf-fallback {
    padding: 2rem;
    text-align: center;
    color: var(--orange);
}
