/* Clean Professional Resume - Salt & Pepper Theme v2.0 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #2d2d2d;
}



/* Header */
.header {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: #f8f8f8;
    padding: 4rem 2rem 3rem;
    position: relative;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: #f8f8f8;
}

.position {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    letter-spacing: 0.025em;
    color: #f8f8f8;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(248, 248, 248, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(248, 248, 248, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(248, 248, 248, 0.2);
    transform: translateY(-2px);
}

.contact-item i {
    width: 18px;
    opacity: 0.9;
    font-size: 1rem;
}

.contact-item a {
    color: #f8f8f8;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    opacity: 0.8;
}

.print-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(248, 248, 248, 0.1);
    color: #f8f8f8;
    border: 1px solid rgba(248, 248, 248, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.print-btn:hover {
    background: rgba(248, 248, 248, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

/* Container Base Styles */
.container {
    max-width: 900px;
    margin: 1.5rem auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #d0d0d0;
    position: relative;
    padding: 2rem 2rem;
    transition: all 0.3s ease;
    /* Default background - will be overridden by specific containers */
    background-color: #fafafa;
}

.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.section {
    margin-bottom: 2rem;
    background-color: transparent;
    border-radius: 16px;
    padding: 1.5rem;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4a4a4a;
    border-radius: 16px 16px 0 0;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: #4a4a4a;
    border-radius: 2px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #d0d0d0 0%, transparent 100%);
}

/* Summary */
.summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #3a3a3a;
}

/* Experience */
.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4a4a4a;
    opacity: 0;
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
    border-color: #4a4a4a;
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: start;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.company {
    font-weight: 600;
    color: #4a4a4a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company::before {
    content: '🏢';
    font-size: 0.875rem;
}

.duration {
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #f0f0f0;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    white-space: nowrap;
}

.achievements {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
}

/* Better spacing for certifications */
.certifications-section .achievements {
    gap: 1rem;
}

.certifications-section .achievements li {
    padding: 0.5rem 0 0.5rem 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.certifications-section .achievements li:hover {
    background: rgba(248, 248, 248, 0.5);
    transform: translateX(8px);
}

.achievements li {
    position: relative;
    padding-left: 2rem;
    color: #3a3a3a;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.achievements li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0.125rem;
    color: #4a4a4a;
    font-weight: bold;
    font-size: 0.875rem;
}

.achievements li:hover {
    color: #1a1a1a;
    transform: translateX(4px);
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.degree {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.school {
    font-weight: 500;
    color: #4a4a4a;
}

.education-details {
    color: #3a3a3a;
    font-style: italic;
}

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

.skill-category {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4a4a4a;
}

.skill-category:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #4a4a4a;
}

.skill-category-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category-title::before {
    content: '⚡';
    font-size: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill {
    background-color: #f0f0f0;
    color: #3a3a3a;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
}

.skill:hover {
    background: #4a4a4a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    border-color: #4a4a4a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        margin: 1rem;
        border-radius: 12px;
        padding: 2rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0.5rem;
        border-radius: 12px;
        padding: 2rem 1.5rem;
    }

    .header {
        padding: 3rem 1.5rem 2.5rem;
    }

    .name {
        font-size: 2.25rem;
    }

    .position {
        font-size: 1.125rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .main-content {
        padding: 0;
    }

    .section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .duration {
        justify-self: start;
    }

    .job-title {
        font-size: 1.25rem;
    }

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

    .skill-category {
        padding: 1.5rem;
    }

    .print-btn {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.25rem;
        border-radius: 8px;
        padding: 1.5rem 1rem;
    }

    .header {
        padding: 2.5rem 1rem 2rem;
    }

    .name {
        font-size: 1.875rem;
    }

    .main-content {
        padding: 0;
    }

    .section {
        padding: 1.25rem;
    }

    .skill-category {
        padding: 1.25rem;
    }

    .contact-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Section-Specific Container Styles - High Specificity */
/* About Section - Light Salt */
.container.about-container,
div.container.about-container {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%) !important;
    border-left: 6px solid #6a6a6a !important;
}

.container.about-container::before,
div.container.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6a6a6a 0%, #5a5a5a 100%) !important;
    z-index: 10;
}

.about-section .section-title {
    color: #1a1a1a !important;
}

.about-section .section-title::before {
    background: #6a6a6a !important;
}

.about-section .summary {
    color: #2d2d2d !important;
}

/* Experience Section - Medium Pepper */
.container.experience-container,
div.container.experience-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%) !important;
    border-left: 6px solid #4a4a4a !important;
}

.container.experience-container::before,
div.container.experience-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%) !important;
    z-index: 10;
}

.experience-section .section-title {
    color: #1a1a1a !important;
}

.experience-section .section-title::before {
    background: #4a4a4a !important;
}

/* Education Section - Light Pepper */
.container.education-container,
div.container.education-container {
    background: linear-gradient(135deg, #fafafa 0%, #f2f2f2 100%) !important;
    border-left: 6px solid #5a5a5a !important;
}

.container.education-container::before,
div.container.education-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #5a5a5a 0%, #4a4a4a 100%) !important;
    z-index: 10;
}

.education-section .section-title {
    color: #1a1a1a !important;
}

.education-section .section-title::before {
    background: #5a5a5a !important;
}

.education-section .degree {
    color: #2d2d2d !important;
}

.education-section .school {
    color: #4a4a4a !important;
}

/* Skills Section - Dark Salt */
.container.skills-container,
div.container.skills-container {
    background: linear-gradient(135deg, #f2f2f2 0%, #e8e8e8 100%) !important;
    border-left: 6px solid #3a3a3a !important;
}

.container.skills-container::before,
div.container.skills-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%) !important;
    z-index: 10;
}

.skills-section .section-title {
    color: #1a1a1a !important;
}

.skills-section .section-title::before {
    background: #3a3a3a !important;
}

.skills-section .skill-category::before {
    background: #3a3a3a !important;
}

.skills-section .skill:hover {
    background: #3a3a3a !important;
}

/* Certifications Section - Deep Pepper */
.container.certifications-container,
div.container.certifications-container {
    background: linear-gradient(135deg, #ebebeb 0%, #dedede 100%) !important;
    border-left: 6px solid #2d2d2d !important;
}

.container.certifications-container::before,
div.container.certifications-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    z-index: 10;
}

.certifications-section .section-title {
    color: #1a1a1a !important;
}

.certifications-section .section-title::before {
    background: #2d2d2d !important;
}

.certifications-section .certification-item {
    background: rgba(250, 250, 250, 0.9) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(208, 208, 208, 0.5) !important;
}

.certifications-section .job-title {
    color: #2d2d2d !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(208, 208, 208, 0.3) !important;
}

/* Footer */
.footer {
    background: #2d2d2d;
    color: #f8f8f8;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Print Styles */
@media print {
    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }

    .no-print {
        display: none !important;
    }

    .section {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }

    .experience-item {
        break-inside: avoid;
    }

    body {
        background: white;
    }

    .header {
        background: #2d2d2d !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}