/* ==========================================
   CSS VARIABLES & ROOT STYLES
   ========================================== */
:root {
    /* Light Theme Colors - Modern Vibrant Palette */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --bg-secondary: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --book-cover: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --page-bg: #ffffff;
    --page-shadow: rgba(102, 126, 234, 0.3);
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="dark"] {
    /* Dark Theme Colors - Deep Purple & Blue */
    --bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bg-secondary: #1a1a2e;
    --text-primary: #edf2f7;
    --text-secondary: #cbd5e0;
    --accent-primary: #9f7aea;
    --accent-secondary: #805ad5;
    --book-cover: linear-gradient(135deg, #434343 0%, #000000 100%);
    --page-bg: #16213e;
    --page-shadow: rgba(159, 122, 234, 0.4);
    --border-color: #2d3748;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    --gradient-2: linear-gradient(135deg, #ed64a6 0%, #f56565 100%);
    --gradient-3: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

/* ==========================================
   GLOBAL RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', serif;
    background: var(--bg-primary);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease, color 0.5s ease;
    position: relative;
    margin: 0;
    padding: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Orbs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(50px, 50px) rotate(180deg);
        opacity: 0.8;
    }
}

/* ----- DNA PARTICLES OUTSIDE BOOK (canvas) ----- */
 #particle-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}
/* #dna-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;  
    z-index: 5;
    opacity: 0.9;
    mix-blend-mode: screen;
}
/* dark mode adaptation */
/* [data-theme="dark"] #dna-canvas {
    opacity: 0.7;
    mix-blend-mode: lighten;
}  */


/* ==========================================
   THEME TOGGLE BUTTON
   ========================================== */
.theme-toggle,
.sound-toggle,
.resume-download {
    position: fixed;
    top: 1rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--page-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle {
    top: 5rem;
}

.resume-download {
    top: 9rem;
    width: auto;
    min-width: 50px;
    padding: 0 1.5rem;
    border-radius: 25px;
    gap: 0.5rem;
}

.resume-download span {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.theme-toggle:hover,
.sound-toggle:hover,
.resume-download:hover {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: white;
}

.resume-download:hover span {
    display: inline;
}

.sound-toggle.muted i::before {
    content: "\f6a9";
}

/* Download Notification */
.download-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.download-notification i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   PAGE INDICATOR
   ========================================== */
.page-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 1000;
    box-shadow: 0 4px 20px var(--page-shadow);
}

#currentPage {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ==========================================
   BOOK CONTAINER & 3D PERSPECTIVE
   ========================================== */
.book-container {
    perspective: 2000px;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    z-index: 10;
}

.book {
    width: 85%;
    max-width: 1400px;
    height: 85vh;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   PAGE STYLES
   ========================================== */
.page {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--page-bg);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform-origin: left center;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px var(--page-shadow),
        0 0 0 1px var(--border-color);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s ease;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Active Page Visible */
.page.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Page Spine Effect */
.page-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.15),
        transparent
    );
    pointer-events: none;
}

/* Cover Page Special Styling */
.cover-page {
    background: var(--book-cover);
    box-shadow: 
        0 30px 80px var(--page-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Flipped Page State - Hidden */
.page.flipped {
    transform: rotateY(-180deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Page Content */
.page-content {
    padding: 3rem 4rem 2rem 4rem;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.page-content::-webkit-scrollbar {
    width: 6px;
}

.page-content::-webkit-scrollbar-track {
    background: transparent;
}

.page-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

/* ==========================================
   COVER PAGE DESIGN
   ========================================== */
.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #f5f1e8;
    text-align: center;
}

.cover-design {
    width: 100%;
    max-width: 500px;
}

.cover-ornament {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    margin: 2rem 0;
    animation: ornamentPulse 3s ease-in-out infinite;
}

@keyframes ornamentPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.cover-title {
    margin: 2rem 0;
}

.title-main {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-divider {
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 1rem auto;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    animation: dividerGlow 2s ease-in-out infinite;
}

@keyframes dividerGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; box-shadow: 0 2px 16px rgba(255, 255, 255, 0.8); }
}

.title-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8dcc8;
}

.cover-tagline {
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.tagline-detail {
    font-weight: 600;
    color: #ffffff;
    margin-top: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.cover-footer {
    margin-top: 3rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInPulse 2s ease-in-out infinite;
}

.tap-indicator {
    margin-top: 1rem;
    font-size: 2rem;
    color: #ffffff;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes fadeInPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   PAGE HEADER STYLES
   ========================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title i {
    font-size: 1.8rem;
}

.page-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ==========================================
   PROFILE SECTION
   ========================================== */
.profile-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.profile-image {
    text-align: center;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 3rem;
    color: white; */
    box-shadow: 0 8px 32px var(--page-shadow);
    margin-bottom: 1rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.profile-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-role {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stat-item i {
    color: var(--accent-primary);
    width: 20px;
}

.profile-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.highlight-box {
    background: linear-gradient(135deg, var(--accent-primary)15, var(--accent-secondary)15);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.highlight-box i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--page-shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.contact-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.expertise-highlights h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    color: var(--accent-primary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px var(--page-shadow);
}

.expertise-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.expertise-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag.expert {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(193, 122, 58, 0.3);
}

.skill-tag.advanced {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.skill-tag.intermediate {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.experience-header {
    margin-bottom: 1rem;
}

.company-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.role {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.experience-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.duration {
    font-weight: 600;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.achievement-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.achievement-list li {
    display: flex;
    gap: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.achievement-list i {
    color: var(--accent-primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 32px var(--page-shadow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-header i {
    color: var(--accent-primary);
}

.project-badge {
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-tech {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.project-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.project-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.education-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 2rem;
    color: white;
}

.education-details h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-field {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-university {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cert-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--page-shadow);
}

.cert-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.cert-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.awards-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.award-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.award-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.award-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.award-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px var(--page-shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-intro h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-method-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px var(--page-shadow);
    background: linear-gradient(135deg, var(--accent-primary)20, var(--accent-secondary)20);
}

.contact-method-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.contact-method-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-method-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.languages-section h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.languages-section i {
    color: var(--accent-primary);
}

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

.language-tags span {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) rotate(10deg);
    background: var(--accent-primary);
    color: white;
}

.footer-note {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-note p {
    margin: 0.5rem 0;
}

/* ==========================================
   NAVIGATION CONTROLS
   ========================================== */
.nav-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 20px var(--page-shadow);
}

.nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: white;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.book-loader {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.book-page {
    width: 60px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 4px;
    animation: pageFlip 1.5s ease-in-out infinite;
}

.book-page:nth-child(2) {
    animation-delay: 0.3s;
}

.book-page:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pageFlip {
    0%, 100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateY(90deg);
        opacity: 0.5;
    }
}

.loading-content p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .book-container {
        height: 100vh;
    }

    .book {
        width: 98%;
        height: 95vh;
    }

    .page-content {
        padding: 2rem 2rem;
    }

    .title-main {
        font-size: 2.8rem;
    }

    .title-sub {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .theme-toggle,
    .sound-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 1rem;
        right: 1rem;
    }

    .sound-toggle {
        top: 3.5rem;
    }

    .page-indicator {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .book-container {
        height: 100vh;
        padding: 0;
    }

    .book {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .page {
        width: 100%;
        border-radius: 0;
    }

    .page-content {
        padding: 1.5rem 1.25rem;
    }

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

    .title-main {
        font-size: 2.2rem;
    }

    .title-sub {
        font-size: 0.9rem;
    }

    .cover-tagline {
        font-size: 0.95rem;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin: 0 auto 1rem;
    }

    .contact-grid,
    .expertise-grid,
    .certifications-grid,
    .services-section {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .nav-controls {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 1rem 1rem;
    }

    .page-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-main {
        font-size: 1.8rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content > * {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    body {
        background: white;
    }

    .theme-toggle,
    .sound-toggle,
    .page-indicator,
    .nav-controls,
    .loading-screen {
        display: none;
    }

    .page {
        box-shadow: none;
        page-break-after: always;
    }
}
