/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f6f2e5;
    --light-beige: #fceecd;
    --beige: #e8dcc4;
    --warm-brown: #8b6f47;
    --dark-brown: #5a3e36;
    --burnt-orange: #cc6600;
    --soft-amber: #d99a51;
    --text-dark: #3d2817;
    --text-medium: #6b4c3b;
    --shadow-soft: rgba(90, 62, 54, 0.1);
    --shadow-medium: rgba(90, 62, 54, 0.2);
    --shadow-strong: rgba(90, 62, 54, 0.3);
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #d4c5a9 0%, #e8dcc4 50%, #f6f2e5 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Book Cover Styles */
.book-cover {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1000;
    margin-left: 30px;
}

.book-cover.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.book-cover-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 550px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.book-cover-content:hover {
    transform: rotateY(-5deg) translateY(-10px);
}

.book-spine {
    position: absolute;
    left: -30px;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, var(--dark-brown), var(--warm-brown));
    border-radius: 5px 0 0 5px;
    box-shadow: -5px 0 15px var(--shadow-medium);
}

.book-front {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--warm-brown) 0%, var(--dark-brown) 100%);
    border-radius: 0 10px 10px 0;
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        10px 10px 40px var(--shadow-strong),
        inset 0 0 50px rgba(0, 0, 0, 0.1),
        inset -5px 0 15px rgba(255, 255, 255, 0.05);
    border: 3px solid var(--soft-amber);
}

.cover-decoration {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 2px solid var(--soft-amber);
    border-radius: 5px;
    opacity: 0.3;
    pointer-events: none;
}

.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-beige);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.cover-subtitle {
    font-size: 1.3rem;
    color: var(--soft-amber);
    text-align: center;
    margin-bottom: 35px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.cover-ornament {
    font-size: 3.5rem;
    color: var(--soft-amber);
    margin-bottom: 40px;
    opacity: 0.8;
}

.open-book-btn {
    background: var(--soft-amber);
    color: var(--dark-brown);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(217, 154, 81, 0.4);
}

.open-book-btn:hover {
    background: var(--light-beige);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 154, 81, 0.5);
}

.open-book-btn i {
    transition: transform 0.3s ease;
}

.open-book-btn:hover i {
    transform: translateX(5px);
}

/* Book Container  */
.book-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 999;
}

.book-container.visible {
    opacity: 1;
    visibility: visible;
}

.book-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.close-book-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-brown);
    color: var(--cream);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.close-book-btn:hover {
    background: var(--burnt-orange);
    transform: rotate(90deg);
}

/* Book Pages */
.book {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: calc(100vh - 120px);
    max-height: 550px;
    perspective: 2000px;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--cream);
    border-radius: 5px;
    box-shadow: 
        0 10px 40px var(--shadow-medium),
        inset 0 0 30px rgba(139, 111, 71, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-origin: left center;
    border: 1px solid var(--beige);
    display: block !important;
    z-index: calc(10 - var(--page-index, 0));
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(139, 111, 71, 0.1));
    pointer-events: none;
    z-index: 10;
    backface-visibility: hidden;
}

.page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(139, 111, 71, 0.08), var(--cream) 10%);
    transform: rotateY(180deg);
    border-radius: 5px;
    border: 1px solid var(--beige);
    backface-visibility: hidden;
    box-shadow: 
        -10px 10px 40px var(--shadow-medium),
        inset 0 0 30px rgba(139, 111, 71, 0.05);
}

/* Page flipping animation */
.page.flipped {
    transform: rotateY(-180deg);
    z-index: 15 !important;
}

/* Content visibility management */
.page-content {
    width: 100%;
    height: 100%;
    padding: 40px 50px;
    overflow-y: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
}

/* Show content when page is revealed */
.page.content-revealed .page-content {
    opacity: 1;
    visibility: visible;
}

/* Hide content when page is flipped */
.page.flipped .page-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease 0.7s, visibility 0.1s ease 0.7s;
}

/* Custom Scrollbar */
.page-content::-webkit-scrollbar {
    width: 6px;
}

.page-content::-webkit-scrollbar-track {
    background: var(--beige);
    border-radius: 10px;
}

.page-content::-webkit-scrollbar-thumb {
    background: var(--warm-brown);
    border-radius: 10px;
}

.page-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-brown);
}

.page-number {
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--warm-brown);
    font-weight: 600;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--soft-amber);
}

/* Page 1: Profile */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--soft-amber);
    box-shadow: 0 8px 25px var(--shadow-medium);
    margin-bottom: 20px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--warm-brown);
    margin-bottom: 15px;
    font-weight: 600;
}

.profile-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 25px;
    text-align: justify;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(139, 111, 71, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(139, 111, 71, 0.15);
    transform: translateX(5px);
}

.detail-item i {
    color: var(--burnt-orange);
    font-size: 1.1rem;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Page 2: Work Experience */
.experience-timeline {
    position: relative;
    padding-left: 35px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--soft-amber);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--beige);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--burnt-orange);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--soft-amber);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--soft-amber);
    color: var(--dark-brown);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 6px;
    font-weight: 600;
}

.timeline-company {
    font-size: 1rem;
    color: var(--warm-brown);
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    text-align: justify;
}

/* Page 3: Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-item {
    display: flex;
    gap: 20px;
    padding: 18px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--soft-amber);
    transition: all 0.3s ease;
}

.education-item:hover {
    background: rgba(139, 111, 71, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-soft);
}

.education-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--soft-amber);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-brown);
}

.education-info {
    flex: 1;
}

.education-degree {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 6px;
    font-weight: 600;
}

.education-school {
    font-size: 1rem;
    color: var(--warm-brown);
    margin-bottom: 4px;
    font-weight: 600;
}

.education-year {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    font-style: italic;
}

.education-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.certification-list {
    list-style: none;
    margin-top: 8px;
}

.certification-list li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.certification-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--burnt-orange);
    font-weight: bold;
}

/* Page 4: Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.achievement-card {
    padding: 20px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.achievement-card:hover {
    background: rgba(139, 111, 71, 0.1);
    border-color: var(--soft-amber);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--soft-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-brown);
}

.achievement-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 6px;
    font-weight: 600;
}

.achievement-year {
    font-size: 0.9rem;
    color: var(--burnt-orange);
    margin-bottom: 10px;
    font-weight: 600;
}

.achievement-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-medium);
}

/* Page 5: Services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 18px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--soft-amber);
}

.service-item:hover {
    background: rgba(139, 111, 71, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-soft);
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--soft-amber);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-brown);
}

.service-content {
    flex: 1;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.service-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--burnt-orange);
    font-size: 1.3rem;
    line-height: 0.9rem;
}

/* Page 6: writings */

.writings-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.writings-intro {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--warm-brown);
    text-align: center;
    font-style: italic;
    margin-bottom: 10px;
}

.writing-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--soft-amber);
    transition: all 0.3s ease;
}

.writing-item:hover {
    background: rgba(139, 111, 71, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-soft);
}

.writing-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--soft-amber);
    margin-top: 5px;
}

.writing-text {
    flex: 1;
}

.writing-english {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.writing-arabic {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    direction: rtl;
    text-align: right;
    font-style: italic;
}


/* Page 7: Contact */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: var(--soft-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-brown);
    font-size: 0.95rem;
}

.whatsapp-form {
    padding: 20px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 10px;
    border: 2px solid var(--beige);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group label i {
    color: var(--burnt-orange);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--beige);
    border-radius: 8px;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-amber);
    box-shadow: 0 0 0 3px rgba(217, 154, 81, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.whatsapp-btn {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--soft-amber);
    color: var(--dark-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--dark-brown);
    color: var(--soft-amber);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-soft);
}

/* Navigation Controls */
.navigation-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(90, 62, 54, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 40px var(--shadow-strong);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: var(--soft-amber);
    color: var(--dark-brown);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: var(--light-beige);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn i {
    font-size: 0.85rem;
}

.page-indicator {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--cream);
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .book {
        max-width: 700px;
        max-height: 500px;
    }
    
    .page-content {
        padding: 35px 35px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles  */
@media screen and (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    /* Book Cover Mobile */
    .book-cover-content {
        max-width: 350px;
        height: 500px;
    }
    
    .cover-title {
        font-size: 2rem;
    }
    
    .cover-subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
    
    .cover-ornament {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .open-book-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
    
    /* Book Container - Scrollable for Mobile */
    .book-container {
        position: relative;
        min-height: 100vh;
        padding: 80px 15px 30px;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    /* Hide navigation controls on mobile */
    .navigation-controls {
        display: none !important;
    }
    
    .close-book-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        z-index: 9999;
    }
    
    /* Book - Vertical Stack for Scrolling */
    .book {
        position: relative;
        max-width: 100%;
        height: auto;
        min-height: auto;
        perspective: none;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

        .writing-item {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }
    
    .writing-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .writing-english {
        font-size: 1rem;
    }
    
    .writing-arabic {
        font-size: 1rem;
    }

    
    /* Pages - All Visible in Vertical Stack */
    .page {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 0;
        transform: none !important;
        display: block !important;
        z-index: 1 !important;
        box-shadow: 0 5px 20px var(--shadow-medium);
    }
    
    /* Remove 3D effects on mobile */
    .page::before,
    .page::after {
        display: none;
    }
    
    /* All page content visible on mobile */
    .page-content {
        padding: 30px 20px;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: visible;
        height: auto;
    }
    
    .page.flipped .page-content {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .page-number {
        top: 12px;
        right: 20px;
        font-size: 0.9rem;
    }
    
    /* Profile Mobile */
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-description {
        font-size: 0.95rem;
    }
    
    /* Timeline Mobile */
    .experience-timeline {
        padding-left: 25px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    /* Education Mobile */
    .education-item {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .education-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .education-degree {
        font-size: 1.1rem;
    }
    
    .education-school {
        font-size: 0.95rem;
    }
    
    /* Achievements Mobile */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .achievement-card {
        padding: 18px;
    }
    
    .achievement-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .achievement-title {
        font-size: 1.1rem;
    }
    
    /* Services Mobile */
    .service-item {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    /* Contact Mobile */
    .whatsapp-form {
        padding: 18px;
    }
    
    .form-title {
        font-size: 1.15rem;
    }
}

@media screen and (max-width: 480px) {
    .book-cover-content {
        max-width: 300px;
        height: 450px;
    }
    
    .cover-title {
        font-size: 1.7rem;
    }
    
    .cover-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .cover-ornament {
        font-size: 2.3rem;
    }
    
    .open-book-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .page-content {
        padding: 25px 15px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .book-cover,
    .close-book-btn,
    .navigation-controls {
        display: none;
    }
    
    .book-container {
        display: block;
    }
    
    .page {
        position: relative;
        display: block;
        page-break-after: always;
        transform: none !important;
        box-shadow: none;
    }
}
