/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Main Container - First Screen */
.first-screen {
    width: 100%;
    min-height: 100vh;
    background-color: rgb(255, 251, 239); /* #FFFBF0 - beige background from Figma */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* read.cv Logo Component */
.read-cv-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 100%;
    height: 100%;
}

/* Group 1: File Icon + Text */
.group-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 100%;
    height: 100%;
}

.read-cv-text {
    font-size: clamp(2rem, 5vw, 3.125rem); /* Responsive font size: 32px to 50px */
    font-weight: 700;
    color: rgb(0, 0, 0);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Custom Button */
.custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: rgb(44, 44, 44); /* #2C2C2C - dark gray from Figma */
    border: 1px solid rgb(44, 44, 44);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 152px;
    height: 40px;
    text-decoration: none;
}

.custom-button:hover {
    background-color: rgb(60, 60, 60);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-button:active {
    transform: translateY(0);
}

.star-icon,
.x-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.button-text {
    font-size: 1rem;
    font-weight: 400;
    color: rgb(255, 255, 255); /* White text color */
    white-space: nowrap;
}

/* Responsive Breakpoints */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    .first-screen {
        padding: 1.5rem;
    }

    .read-cv-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 1.5rem;
    }

    .group-1 {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .file-icon {
        width: 40px;
        height: 40px;
    }

    .read-cv-text {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .custom-button {
        min-width: 140px;
        height: 38px;
        padding: 0.625rem 1.25rem;
    }

    .star-icon,
    .x-icon {
        width: 14px;
        height: 14px;
    }

    .button-text {
        font-size: 0.9375rem;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .first-screen {
        padding: 1rem;
    }

    .read-cv-logo {
        width: 36px;
        height: 36px;
        margin-bottom: 1rem;
    }

    .group-1 {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .file-icon {
        width: 36px;
        height: 36px;
    }

    .read-cv-text {
        font-size: clamp(1.5rem, 8vw, 2rem);
        white-space: normal;
    }

    .custom-button {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        height: 44px;
        padding: 0.75rem 1rem;
    }

    .star-icon,
    .x-icon {
        width: 16px;
        height: 16px;
    }

    .button-text {
        font-size: 1rem;
    }
}

/* Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .first-screen {
        padding: 0.75rem;
    }

    .read-cv-text {
        font-size: 1.5rem;
    }

    .custom-button {
        height: 40px;
        padding: 0.625rem 0.875rem;
        gap: 0.375rem;
    }

    .star-icon,
    .x-icon {
        width: 14px;
        height: 14px;
    }

    .button-text {
        font-size: 0.875rem;
    }
}

/* Large Desktop (1440px and above) */
@media screen and (min-width: 1440px) {
    .first-screen {
        padding: 3rem;
    }

    .read-cv-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 2.5rem;
    }

    .group-1 {
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .file-icon {
        width: 56px;
        height: 56px;
    }

    .read-cv-text {
        font-size: 3.5rem;
    }

    .custom-button {
        min-width: 180px;
        height: 48px;
        padding: 0.875rem 1.75rem;
        gap: 0.625rem;
    }

    .star-icon,
    .x-icon {
        width: 18px;
        height: 18px;
    }

    .button-text {
        font-size: 1.125rem;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .first-screen {
        padding: 1rem;
        min-height: auto;
        height: 100vh;
    }

    .read-cv-logo {
        margin-bottom: 1rem;
    }

    .group-1 {
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .logo-icon,
    .file-icon svg,
    .star-icon,
    .x-icon {
        shape-rendering: geometricPrecision;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .custom-button {
        transition: none;
    }

    .custom-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .first-screen {
        background-color: white;
        min-height: auto;
        padding: 2rem;
    }

    .custom-button {
        display: none;
    }
}

/* ============================================
   LIQUID GLASS HEADER
   ============================================ */

.liquid-glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 251, 239, 0.3); /* More transparent beige */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    width: 100%;
}

.header-name {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   SECOND SCREEN - PORTFOLIO/RESUME
   ============================================ */

.second-screen {
    width: 100%;
    min-height: 100vh;
    background-color: rgb(255, 251, 239); /* #FFFBF0 - beige background */
    padding: 3rem 2rem;
    padding-top: calc(3rem + 80px); /* Add space for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Profile Header */
.profile-header {
    margin-bottom: 3rem;
}

.name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.4;
    opacity: 0.75;
    transition: opacity 0.5s ease;
}

/* Section Styles */
.section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* About Section */
.about-text {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.6;
    max-width: 800px;
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.date-column {
    min-width: 0;
}

.date {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(158, 158, 158); /* #9E9E9E - gray color */
    line-height: 1.4;
    display: block;
}

.content-column {
    min-width: 0;
}

.experience-title-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.experience-title {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.open-certificate {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    text-decoration: underline;
    transition: opacity 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
}

.open-certificate:hover {
    opacity: 0.7;
}

.open-certificate:active {
    opacity: 0.5;
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.education-title-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.education-title {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.show-details {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.show-details:hover {
    opacity: 0.7;
}

.show-details:active {
    opacity: 0.5;
}

/* Subjects Container */
.subjects-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(230, 230, 230);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.subject-name {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.5;
}

.subject-grade {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    font-weight: 500;
    color: rgb(158, 158, 158);
    line-height: 1.5;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    align-items: center;
}

.skill-name {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.5;
    min-width: 0;
}

.skill-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.skill-slider {
    flex: 1;
    height: 8px;
    background-color: rgb(230, 230, 230);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    min-width: 100px;
}

.skill-slider-fill {
    height: 100%;
    background-color: rgb(44, 44, 44);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.skill-percentage {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(158, 158, 158);
    min-width: 45px;
    text-align: right;
}

/* Social List */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.social-label {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(158, 158, 158); /* #9E9E9E - gray color */
    line-height: 1.4;
    display: block;
}

.social-value {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgb(44, 44, 44);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    padding: 0.75rem 2rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: rgb(255, 255, 255);
    background-color: rgb(44, 44, 44);
    border: 1px solid rgb(44, 44, 44);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.form-submit:hover {
    background-color: rgb(60, 60, 60);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: rgb(56, 142, 60);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: rgb(198, 40, 40);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 251, 239);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgb(44, 44, 44);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    margin: 0;
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Footer */
.footer {
    width: 100%;
    background-color: rgb(255, 251, 239);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(158, 158, 158);
    margin: 0;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Responsive Breakpoints for Second Screen */

/* Tablet (1024px and below) */
@media screen and (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .second-screen {
        padding: 2.5rem 1.5rem;
        padding-top: calc(2.5rem + 70px);
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .profile-header {
        margin-bottom: 2.5rem;
    }

    .section {
        margin-bottom: 3rem;
    }

    .experience-item,
    .education-item,
    .skill-item,
    .social-item {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }

    .skill-item {
        grid-template-columns: 150px 1fr auto;
    }
}

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0.875rem 1.25rem;
    }

    .second-screen {
        padding: 2rem 1.25rem;
        padding-top: calc(2rem + 65px);
    }

    .footer {
        margin-top: 0;
        padding: 1.5rem 0;
    }

    .footer-container {
        padding: 0 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-header {
        margin-bottom: 2rem;
    }

    .section {
        margin-bottom: 2.5rem;
    }

    .section-title {
        margin-bottom: 1.25rem;
    }

    .experience-list,
    .education-list,
    .skills-list,
    .social-list {
        gap: 1.25rem;
    }

    .experience-item,
    .education-item,
    .skill-item,
    .social-item {
        grid-template-columns: 120px 1fr;
        gap: 1.25rem;
    }

    .skill-item {
        grid-template-columns: 120px 1fr auto;
    }
}

/* Mobile (640px and below) - Stack columns */
@media screen and (max-width: 640px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .second-screen {
        padding: 1.5rem 1rem;
        padding-top: calc(1.5rem + 60px);
    }

    .footer {
        margin-top: 0;
        padding: 1.25rem 0;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .profile-header {
        margin-bottom: 1.75rem;
    }

    .section {
        margin-bottom: 2rem;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    .experience-item,
    .education-item,
    .skill-item,
    .social-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .experience-title-row,
    .education-title-row {
        gap: 1rem;
    }

    .subjects-container {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .subjects-list {
        gap: 0.5rem;
    }

    .subject-item {
        padding: 0.375rem 0;
    }

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

    .skill-slider-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skill-percentage {
        text-align: left;
        min-width: auto;
    }

    .date-column {
        margin-bottom: 0.25rem;
    }

    .date,
    .social-label {
        font-size: 0.875rem;
    }

    .experience-title,
    .education-title,
    .social-value {
        font-size: 0.9375rem;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 0.75rem 0.875rem;
    }

    .second-screen {
        padding: 1.25rem 0.875rem;
        padding-top: calc(1.25rem + 55px);
    }

    .footer {
        margin-top: 0;
        padding: 1rem 0;
    }

    .footer-container {
        padding: 0 0.875rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .profile-header {
        margin-bottom: 1.5rem;
    }

    .contact-form {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-submit {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .profile-header {
        margin-bottom: 1.5rem;
    }

    .section {
        margin-bottom: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }

    .about-text {
        font-size: 0.9375rem;
    }

    .experience-list,
    .education-list,
    .skills-list,
    .social-list {
        gap: 1rem;
    }

    .experience-item,
    .education-item,
    .skill-item,
    .social-item {
        gap: 0.375rem;
    }

    .skill-item {
        gap: 0.5rem;
    }
}

/* Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .header-container {
        padding: 0.625rem 0.75rem;
    }

    .second-screen {
        padding: 1rem 0.75rem;
        padding-top: calc(1rem + 50px);
    }

    .profile-header {
        margin-bottom: 1.5rem;
    }

    .section {
        margin-bottom: 1.75rem;
    }

    .name {
        font-size: 1.375rem;
    }

    .subtitle {
        font-size: 0.9375rem;
    }

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

    .about-text,
    .experience-title,
    .education-title,
    .social-value {
        font-size: 0.875rem;
    }

    .date,
    .social-label,
    .show-details,
    .open-certificate {
        font-size: 0.8125rem;
    }
}

/* Large Desktop (1440px and above) */
@media screen and (min-width: 1440px) {
    .header-container {
        max-width: 1400px;
        padding: 1.5rem 3rem;
    }

    .second-screen {
        padding: 4rem 3rem;
        padding-top: calc(4rem + 90px);
    }

    .footer-container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .footer {
        margin-top: 0;
        padding: 2.5rem 0;
    }

    .container {
        max-width: 1400px;
    }

    .profile-header {
        margin-bottom: 4rem;
    }

    .name {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.375rem;
    }

    .section {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .about-text {
        font-size: 1.125rem;
        max-width: 900px;
    }

    .experience-item,
    .education-item,
    .skill-item,
    .social-item {
        grid-template-columns: 220px 1fr;
        gap: 2.5rem;
    }

    .skill-item {
        grid-template-columns: 220px 1fr auto;
    }

    .date,
    .social-label {
        font-size: 1.125rem;
    }

    .experience-title,
    .education-title,
    .social-value {
        font-size: 1.125rem;
    }

    .show-details,
    .open-certificate {
        font-size: 1.125rem;
    }
}

/* Landscape Orientation Adjustments for Second Screen */
@media screen and (max-height: 800px) and (orientation: landscape) {
    .second-screen {
        padding: 2rem 1.5rem;
    }

    .profile-header {
        margin-bottom: 1.5rem;
    }

    .section {
        margin-bottom: 2rem;
    }
}

/* Print Styles for Second Screen */
@media print {
    .second-screen {
        background-color: white;
        padding: 2rem;
        page-break-inside: avoid;
    }

    .show-details,
    .open-certificate {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }
}

/* Accessibility: Reduced Motion for Second Screen */
@media (prefers-reduced-motion: reduce) {
    .show-details,
    .open-certificate {
        transition: none;
    }

    .subjects-container {
        animation: none;
    }

    .loading-spinner {
        animation: none;
    }

    .loading-screen,
    #main-header,
    #portfolio-content,
    #main-footer {
        transition: none !important;
    }
}

