:root {
    --bg: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --border: #ececec;
    --accent: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
}

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

/* Header & Hero */
header { padding: 60px 0 40px; }
.container.hero {
    display: grid;
    grid-template-columns: minmax(180px, 380px) 1fr;
    gap: 0.5rem;
    align-items: center;
    text-align: left;
}
.hero-left { display: block; }
.hero-right { padding-right: 0.5rem; }

.profile-photo {
    width: 100%;
    max-width: 266px;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 6px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin: 0;

    /* keep image proportions and crop to fit the rounded rectangle */
    object-fit: cover;
    object-position: center;
    aspect-ratio: 3 / 4;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; margin: 0; }
.tagline { font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1rem; }

@media (max-width: 800px) {
    .container.hero { grid-template-columns: 1fr; text-align: center; }
    .profile-photo { max-width: 154px; aspect-ratio: 1 / 1; border-radius: 50%; margin: 0 auto 1rem; }
    .hero-right { padding-top: 0.5rem; }
    .links { display:flex; justify-content:center; gap: 12px; }
}
.tagline { color: var(--text-secondary); margin-bottom: 1.5rem; }
.links a { color: var(--text-main); font-size: 1.3rem; margin: 0 12px; transition: opacity 0.2s; }
.links a:hover { opacity: 0.5; }

/* Dropdown Sections */
.dropdown-section {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 0;
    transition: background 0.2s;
}

/* keyboard focus styles for accessibility */
.section-header:focus {
    outline: 2px solid rgba(0,0,0,0.08);
    outline-offset: 4px;
    border-radius: 4px;
}

.section-header:hover .section-title {
    color: var(--text-secondary);
}

.section-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.section-header i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Smooth Content Transition */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.section-content.active {
    max-height: 1500px; /* Large enough to fit content */
    padding-bottom: 30px;
}

.rotate { transform: rotate(180deg); }

/* Experience & Projects */
.experience-item { margin-top: 20px; }
.item-header { display: flex; justify-content: space-between; font-weight: 600; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.project-card { border: 1px solid var(--border); padding: 20px; border-radius: 4px; }

/* Resume & Buttons */
.btn-minimal {
    margin-top: 12px;
    background: none;
    border: 1px solid var(--text-main);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* center the resume button + viewer inside the page/container */
.resume-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 18px 0;
}

.hidden { display: none; }

.pdf-container {
    margin-top: 15px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 820px; /* keeps embed readable on large screens */
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
}

.pdf-container embed { display: block; width: 100%; height: 500px; }

@media (max-width: 800px) {
    .pdf-container { max-width: 100%; }
}

footer { padding: 60px 0; text-align: center; font-size: 0.8rem; color: var(--text-secondary); }

@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }
