/* Resume Base Styles - Shared across all themes */

/* Base Reset and Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Theme Selector */
.theme-selector {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-selector__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.theme-selector__dropdown {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 160px;
}

.theme-selector__dropdown:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.theme-selector__dropdown:focus {
    outline: none;
    border-color: var(--accent-color, #ffd763);
    box-shadow: 0 0 0 2px var(--accent-glow, rgba(255, 215, 99, 0.2));
}

.theme-selector__dropdown option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

/* Page Wrapper */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding-top: 2rem;
}

/* Hero Section */
.hero {
    padding: 2rem;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
}

/* Profile Image */
.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    flex-shrink: 0;
    will-change: transform;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Text Content */
.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-text h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.hero-text h1 .letter {
    display: inline-block;
    will-change: transform, opacity;
}

/* Tagline */
.tagline {
    margin-top: 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.tagline-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Tech Icons */
.tech-icons {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.tech-icons i {
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.tech-icon-svg {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: fill 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tech-icon-svg svg {
    width: 100%;
    height: 100%;
    transition: fill 0.3s ease;
}

/* Info Icons */
.info-icon {
    margin-right: 0.25rem;
}

/* Contact, Education, Extras, Links */
.contact-info,
.education,
.extras,
.links {
    margin-top: 0.5rem;
}

.contact-info p,
.education p,
.extras p,
.links p {
    margin: 0.2rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.contact-info a,
.links a {
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.contact-info a::after,
.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.contact-info a:hover::after,
.links a:hover::after {
    width: 100%;
}

/* Sections */
.section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.75rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.section:first-of-type {
    margin-top: 1rem;
}

.section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    cursor: pointer;
    will-change: transform;
    transition: color 0.3s ease;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.heading-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    transform-origin: left;
}

.section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    transition: color 0.3s ease;
}

/* Summary Section */
.summary details {
    margin-top: 1rem;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.summary details summary {
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.summary details[open] summary {
    margin-bottom: 0.5rem;
}

.summary details p {
    margin: 0.5rem 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.skills-grid > div {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border-left: 4px solid;
    font-size: 0.95rem;
    cursor: pointer;
    will-change: transform, box-shadow;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.skills-grid > div strong {
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Experience Section */
.experience .job,
.academics .school {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid;
    position: relative;
    will-change: transform, opacity;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.experience .job::before,
.academics .school::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.experience h3,
.academics h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.experience h3 span,
.academics h3 span {
    font-weight: 400;
    transition: color 0.3s ease;
}

.job-dates {
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    font-style: italic;
    transition: color 0.3s ease;
}

.job ul,
.school ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0 0 0;
    list-style: none;
}

.job ul li,
.school ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1rem;
    will-change: transform, opacity;
    transition: color 0.3s ease;
}

.job ul li::before,
.school ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.7;
    transition: background 0.3s ease;
}

/* Academics Section */
.academics .school p {
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    font-style: italic;
}

/* Theme Background Container */
.theme-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

/* Responsive Design - Tablet */
@media (max-width: 900px) {
    body {
        padding: 1.5rem;
    }

    .theme-selector {
        top: 0.75rem;
    }

    .theme-selector__label {
        display: none;
    }

    .theme-selector__dropdown {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .hero {
        padding: 1.5rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .section h2 {
        font-size: 1.6rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        padding-top: 3.5rem;
    }

    .theme-selector {
        top: 0.5rem;
    }

    .theme-selector__dropdown {
        min-width: 130px;
    }

    .page-wrapper {
        padding-top: 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .hero-text {
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .tech-icons {
        justify-content: center;
    }

    .tech-icons i,
    .tech-icon-svg {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .contact-info,
    .education,
    .extras,
    .links {
        text-align: center;
    }

    .contact-info p,
    .education p,
    .extras p,
    .links p {
        justify-content: center;
        font-size: 0.86rem;
    }

    .section {
        padding: 1.25rem;
        margin: 1.5rem auto;
        border-radius: 12px;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .section p {
        font-size: 0.95rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .skills-grid > div {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .experience .job,
    .academics .school {
        padding-left: 1.25rem;
        margin-bottom: 2rem;
    }

    .experience h3,
    .academics h3 {
        font-size: 1.1rem;
    }

    .job ul li,
    .school ul li {
        font-size: 0.9rem;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    body {
        padding: 0.75rem;
        padding-top: 3.5rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .tech-icons {
        gap: 0.5rem;
    }

    .tech-icons i,
    .tech-icon-svg {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .section {
        padding: 1rem;
        margin: 1rem auto;
    }

    .section h2 {
        font-size: 1.25rem;
    }

    .experience h3,
    .academics h3 {
        font-size: 1rem;
    }

    .experience h3 span,
    .academics h3 span {
        display: block;
        margin-top: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .theme-selector {
        display: none;
    }

    .theme-background {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
        padding: 0;
    }

    .section {
        background: none !important;
        border: none !important;
        backdrop-filter: none;
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
    }

    .profile-img {
        box-shadow: none;
    }

    .section h2,
    .hero-text h1,
    .tagline,
    .experience h3,
    .academics h3,
    .skills-grid > div strong {
        color: #333 !important;
    }

    a {
        color: #0066cc !important;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
a:focus {
    outline: 2px solid var(--accent-color, #ffd763);
    outline-offset: 2px;
}

details summary:focus {
    outline: none;
}

details summary:focus-visible {
    outline: 1px solid var(--accent-focus, rgba(255, 215, 99, 0.5));
    outline-offset: 2px;
    border-radius: 4px;
}

.skills-grid > div:focus,
.job:focus,
.school:focus {
    outline: 2px solid var(--accent-color, #ffd763);
    outline-offset: 4px;
}

/* Selection Styles - themes override this */
::selection {
    background: var(--selection-bg, rgba(255, 215, 99, 0.3));
    color: var(--selection-color, white);
}
