/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    /* Default Dark Mode Variables */
    --bg-color: #121212; --surface-color: #1e1e1e; --surface-light: #2a2a2a; --primary-text: #e0e0e0; --secondary-text: #b0b0b0; --accent-color: #03dac6; --accent-rgb: 3, 218, 198; --highlight-color: #bb86fc; --error-color: #cf6679; --success-color: #66bb6a; --white: #ffffff; --black: #000000; --border-color: var(--surface-light);
    --header-height: 70px; --base-font-size: 16px; scroll-padding-top: calc(var(--header-height) + 20px); scroll-behavior: smooth;
}
html { font-size: var(--base-font-size); }
body { background-color: var(--bg-color); color: var(--primary-text); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.7; overflow-x: hidden; transition: background-color 0.3s ease, color 0.3s ease; }
/* Light Mode Theme */
body.light-mode { --bg-color: #f4f4f9; --surface-color: #ffffff; --surface-light: #eef0f4; --primary-text: #212121; --secondary-text: #5f6368; --accent-color: #00796b; --accent-rgb: 0, 121, 107; --highlight-color: #673ab7; --error-color: #d32f2f; --success-color: #388e3c; --border-color: #d1d5db; }
/* High Contrast Mode */
body.high-contrast-mode { /* Add styles if implemented */ }

/* --- Base Elements --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--primary-text); margin-bottom: 1rem; line-height: 1.3; transition: color 0.3s ease; }
h1 { font-size: calc(1rem + 1.8vw); }
h2 { font-size: calc(1rem + 1.2vw); border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 0.5rem; margin-bottom: 2rem; transition: border-color 0.3s ease;}
h3 { font-size: calc(1rem + 0.6vw); }
h4 { font-size: calc(1rem + 0.2vw); color: var(--accent-color); margin-bottom: 0.7rem; transition: color 0.3s ease;}
p { margin-bottom: 1rem; color: var(--secondary-text); transition: color 0.3s ease;}
.section-intro { text-align: center; color: var(--secondary-text); margin-top: -1rem; margin-bottom: 2.5rem; font-size: 1rem;}
.section-intro i { vertical-align: middle;}
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--highlight-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); transition: border-color 0.3s ease;}
section:last-of-type { border-bottom: none; }
blockquote { border-left: 4px solid var(--accent-color); padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: var(--secondary-text); transition: border-color 0.3s ease;}
.remote-highlight { color: var(--highlight-color); font-weight: 500; transition: color 0.3s ease;}
.remote-highlight.large { font-size: 1.1rem; display: block; text-align: center; margin: 1.5rem 0; }
.remote-highlight.large i { margin-right: 8px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; /* For icon alignment */ padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, border-color 0.3s ease; border: none; font-size: 0.95rem; margin: 5px; line-height: 1.4; text-align: center; }
.btn i { margin-right: 8px; line-height: 1; /* Prevents icon messing with line height */}
.btn-primary { background-color: var(--accent-color); color: var(--bg-color); }
.btn-primary:hover:not(:disabled) { background-color: var(--highlight-color); color: var(--bg-color); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); }
.btn-secondary:hover:not(:disabled) { background-color: var(--accent-color); color: var(--bg-color); transform: translateY(-2px); }
.btn.disabled, .btn:disabled { background-color: var(--surface-light) !important; border-color: var(--surface-light) !important; color: var(--secondary-text) !important; cursor: not-allowed; transform: none !important; opacity: 0.6; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn-small i { margin-right: 5px; }
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; } /* Group buttons in contact card */

/* --- Accessibility Menu --- */
#accessibility-menu { position: fixed; top: calc(var(--header-height) + 15px); left: 15px; z-index: 1001; }
#acc-toggle-btn { background-color: var(--surface-color); color: var(--primary-text); border: 1px solid var(--border-color); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
#acc-toggle-btn i { font-size: 1.2rem; }
#acc-options { position: absolute; top: 50px; left: 0; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 5px; padding: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; width: max-content; }
.acc-options-visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.acc-options-hidden { opacity: 0; transform: translateY(-10px); pointer-events: none; }
#acc-options fieldset { border: none; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border-color); }
#acc-options fieldset:last-of-type { margin-bottom: 0; border-bottom: none; }
#acc-options legend { font-weight: bold; font-size: 0.9rem; margin-bottom: 8px; color: var(--primary-text); }
#acc-options button { background-color: var(--surface-light); border: 1px solid var(--border-color); color: var(--secondary-text); padding: 5px 10px; margin: 2px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
#acc-options button:hover { background-color: var(--accent-color); color: var(--bg-color); }
#acc-options button[aria-pressed="true"] { background-color: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); font-weight: bold; }

/* --- Navigation --- */
#main-nav { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(18, 18, 18, 0.9); backdrop-filter: blur(10px); z-index: 1000; height: var(--header-height); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); transition: background-color 0.3s ease; }
body.light-mode #main-nav { background-color: rgba(255, 255, 255, 0.9); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo-svg { height: 30px; width: auto; }
.logo-rc { font-size: 26px; font-weight: bold; }
.logo-name { font-size: 18px; font-weight: 500; }
#main-nav ul { display: flex; }
#main-nav ul li { margin-left: 20px; }
#main-nav ul li a { color: var(--secondary-text); padding: 5px 0; position: relative; font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease;}
#main-nav ul li a::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease, background-color 0.3s ease; }
#main-nav ul li a:hover::after, #main-nav ul li a.active::after { width: 60%; }
#main-nav ul li a.active { color: var(--accent-color); }
#main-nav ul li a:hover { color: var(--highlight-color); }
#basket-toggle i { margin-right: 5px; }

/* Profile Basket & Modal Styles remain the same as previous complete version */
/* ... (Paste complete BASKET and MODAL styles here) ... */
#profile-basket { position: fixed; top: 0; right: 0; width: 300px; height: 100%; background-color: var(--surface-color); box-shadow: -5px 0 15px rgba(0,0,0,0.3); z-index: 1010; padding: calc(var(--header-height) + 20px) 20px 20px 20px; transform: translateX(100%); transition: transform 0.4s ease-in-out, background-color 0.3s ease; display: flex; flex-direction: column; }
#profile-basket.basket-visible { transform: translateX(0); }
#profile-basket h4 { text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; transition: border-color 0.3s ease;}
#basket-list { flex-grow: 1; overflow-y: auto; margin-bottom: 15px; padding-right: 5px; }
#basket-list li { background-color: var(--surface-light); padding: 8px 12px; margin-bottom: 8px; border-radius: 4px; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; color: var(--primary-text); transition: background-color 0.3s ease; }
#basket-list li.basket-placeholder { background-color: transparent; color: var(--secondary-text); font-style: italic; text-align: center; display: block; padding: 15px 0; }
#basket-list li.basket-placeholder i { color: var(--accent-color); }
#basket-list .remove-item { color: var(--error-color); cursor: pointer; margin-left: 10px; font-size: 1.1rem; background: none; border: none; padding: 0; opacity: 0.7; transition: opacity 0.2s ease, color 0.3s ease; }
#basket-list .remove-item:hover { opacity: 1;}
.basket-close-btn { position: absolute; top: 15px; right: 15px; font-size: 2rem; color: var(--secondary-text); background: none; border: none; cursor: pointer; line-height: 1; transition: color 0.3s ease;}
.basket-close-btn:hover { color: var(--primary-text); }
.basket-actions { display: flex; justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border-color); gap: 10px; transition: border-color 0.3s ease;}
.basket-actions .btn { flex: 1; }
#basket-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 1005; opacity: 0; transition: opacity 0.4s ease-in-out; pointer-events: none; }
#basket-overlay.basket-visible { opacity: 1; pointer-events: all; }
.basket-hidden { transform: translateX(100%); opacity: 0; pointer-events: none; }
#summary-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); width: 90%; max-width: 550px; background-color: var(--surface-color); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 1020; padding: 30px; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease; pointer-events: none; }
#summary-modal.modal-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: all; animation: modal-pop 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.modal-hidden { opacity: 0; transform: translate(-50%, -50%) scale(0.9); pointer-events: none; }
#modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1015; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
#modal-overlay.modal-visible { opacity: 1; pointer-events: all; }
.modal-content { position: relative; }
.modal-content h3 { text-align: center; color: var(--accent-color); margin-bottom: 20px; }
.modal-content p { text-align: center; margin-bottom: 15px; color: var(--secondary-text); }
#summary-list { list-style: none; padding-left: 0; margin-bottom: 25px; max-height: 40vh; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 4px; padding: 15px; transition: border-color 0.3s ease;}
#summary-list li { margin-bottom: 10px; color: var(--primary-text); font-size: 0.95rem; padding-left: 1.5em; position: relative; line-height: 1.4; transition: color 0.3s ease;}
#summary-list li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: var(--success-color); font-weight: bold; transition: color 0.3s ease;}
.modal-close-btn { position: absolute; top: -10px; right: -5px; font-size: 2rem; color: var(--secondary-text); background: none; border: none; cursor: pointer; line-height: 1; transition: color 0.2s ease; }
.modal-close-btn:hover { color: var(--primary-text); }
.modal-content #copy-summary-btn { display: block; margin: 0 auto; width: 80%; }
#copy-feedback { display: block; text-align: center; margin-top: 10px; color: var(--success-color); font-weight: bold; font-size: 0.9rem; height: 1.2em; opacity: 0; transition: opacity 0.3s ease, color 0.3s ease; }
#copy-feedback:not(.copy-feedback-hidden) { opacity: 1; }
.copy-feedback-hidden { opacity: 0; }

/* --- Hero Section --- */
#hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding-top: calc(var(--header-height) + 40px); padding-bottom: 40px; border-bottom: none; background: var(--bg-color); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)); z-index: 1; }
body.light-mode .hero-overlay { background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(244, 244, 249, 0.7)); }
.hero-content { position: relative; z-index: 2; }
.profile-photo { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 5px solid var(--accent-color); margin: 0 auto 1.5rem auto; box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4); transition: border-color 0.3s ease;}
#hero h1 { margin-bottom: 0.5rem; font-size: calc(1.5rem + 2vw); }
#hero h2 { font-size: calc(1rem + 1vw); color: var(--primary-text); border: none; margin-bottom: 1rem; transition: color 0.3s ease;}
#hero h3 { font-size: calc(0.9rem + 0.3vw); color: var(--secondary-text); margin-bottom: 2rem; max-width: 650px; margin-left: auto; margin-right: auto; transition: color 0.3s ease;}
#hero h3 .remote-highlight { display: block; margin-top: 0.5rem; font-size: 1.05em;}
.hero-cta { margin-bottom: 2rem; }
.hero-icons i { font-size: 1.7rem; margin: 0 12px; color: var(--secondary-text); transition: color 0.3s ease; }
.hero-icons i:hover { color: var(--accent-color); }

/* --- About Section --- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content .remote-highlight { margin-top: 1.5rem; font-size: 1.1em; }

/* --- Expertise Section --- */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }
.expertise-category { background-color: var(--surface-color); padding: 25px; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; border-left: 4px solid var(--accent-color); }
.expertise-category:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.expertise-category h4 i { margin-right: 10px; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.skills-tags span.collectible { background-color: rgba(var(--accent-rgb), 0.1); color: var(--accent-color); padding: 6px 12px; border-radius: 15px; font-size: 0.9em; font-weight: 500; display: inline-flex; align-items: center; transition: background-color 0.2s ease, color 0.2s ease; }
.skills-tags span.item-added-parent { background-color: rgba(var(--success-rgb, 76, 175, 80), 0.15) !important; color: var(--success-color) !important; }

/* --- Collectible Items & Icons --- */
.collectible { cursor: pointer; position: relative; }
.add-icon { margin-left: 8px; font-size: 0.9em; color: var(--secondary-text); transition: color 0.2s ease, transform 0.2s ease; vertical-align: middle; display: inline-block; /* Ensure it behaves well */ }
.collectible:hover .add-icon { color: var(--primary-text); transform: scale(1.1); }
.add-icon-inline { color: var(--accent-color); font-size: 1em; vertical-align: middle;}
.add-icon-standalone { position: absolute; bottom: 10px; right: 15px; font-size: 1.2rem; color: var(--secondary-text); opacity: 0.7; transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease; }
.collectible:hover .add-icon-standalone { color: var(--accent-color); opacity: 1; transform: scale(1.1);}
.item-added { color: var(--success-color) !important; }
.collectible.clicked { animation: click-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } /* Enhanced bounce */
@keyframes click-bounce {
  0% { transform: scale(1); background-color: transparent;}
  40% { transform: scale(0.9); background-color: rgba(var(--accent-rgb), 0.2);}
  100% { transform: scale(1); background-color: transparent;}
}
/* Specific background flash for list items etc. */
.accordion-content li.collectible.clicked,
.language-list p.collectible.clicked,
.volunteering-list p.collectible.clicked,
.hobbies span.collectible.clicked {
    animation: click-bounce-bg 0.4s ease;
}
@keyframes click-bounce-bg {
  0% { background-color: transparent;}
  40% { background-color: rgba(var(--accent-rgb), 0.15);}
  100% { background-color: transparent;}
}


/* --- Experience Accordion --- */
.experience-accordion { max-width: 900px; margin: 0 auto; }
.accordion-item { background-color: var(--surface-color); margin-bottom: 15px; border-radius: 6px; border: 1px solid var(--border-color); overflow: hidden; transition: background-color 0.3s ease, border-color 0.3s ease;}
.accordion-item summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; cursor: pointer; list-style: none; font-weight: 500; transition: background-color 0.2s ease; }
.accordion-item summary:hover { background-color: var(--surface-light); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-title { color: var(--primary-text); flex-grow: 1; margin-right: 15px; display: inline-flex; align-items: center; transition: color 0.3s ease;}
.accordion-title .add-icon { font-size: 0.8em; margin-left: 10px;}
.accordion-date { color: var(--secondary-text); font-size: 0.85rem; flex-shrink: 0; transition: color 0.3s ease;}
.accordion-icon { color: var(--secondary-text); transition: transform 0.3s ease, color 0.3s ease; margin-left: 15px; }
.accordion-item[open] summary { border-bottom: 1px solid var(--border-color); background-color: var(--surface-light); }
.accordion-item[open] .accordion-icon { transform: rotate(180deg); }
.accordion-content { padding: 20px 25px; background-color: var(--surface-color); transition: background-color 0.3s ease;}
.accordion-content ul { padding-left: 0; list-style: none; margin-bottom: 15px; }
.accordion-content ul li { margin-bottom: 10px; font-size: 0.9rem; color: var(--secondary-text); padding: 8px 40px 8px 12px; border-radius: 4px; transition: background-color 0.2s ease, color 0.3s ease; position: relative; min-height: 38px; /* Ensure height */}
.accordion-content ul li.collectible:hover { background-color: var(--surface-light); }
.accordion-content ul li.collectible .add-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 1em; }
.company-link { font-size: 0.9rem; display: inline-block; margin-top: 5px; }

/* --- Education Section --- */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.education-item { background-color: var(--surface-color); padding: 30px 25px 45px 25px; border-radius: 8px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; position: relative; }
.education-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.education-item i.fas:not(.add-icon) { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; transition: color 0.3s ease;}
.education-item h4 { font-size: 1.1rem; color: var(--primary-text); margin-bottom: 5px; transition: color 0.3s ease;}
.education-item p { font-size: 0.9rem; margin-bottom: 10px; }
.education-item span { font-size: 0.85rem; color: var(--secondary-text); display: inline-block; transition: color 0.3s ease;}
.education-item span.highlight { color: var(--highlight-color); font-weight: bold; transition: color 0.3s ease;}

/* --- Skills Extra Section (Lang/Hobbies/Volunteering) --- */
.skills-extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.extra-item { background-color: var(--surface-color); padding: 25px; border-radius: 8px; display: flex; flex-direction: column; position: relative; transition: background-color 0.3s ease;}
.extra-item h4 { display: flex; align-items: center; }
.extra-item h4 i { margin-right: 10px; }
/* Language List Fixes */
.language-list p { margin-bottom: 0.5rem; padding: 8px 40px 8px 12px; position: relative; border-radius: 4px; transition: background-color 0.2s ease; min-height: 38px;}
.language-list p.collectible:hover { background-color: var(--surface-light);}
.language-list p strong { color: var(--primary-text); transition: color 0.3s ease;}
.language-list p .add-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 1em; color: var(--secondary-text); /* Ensure color */}
/* Volunteering List Fixes */
.volunteering-list p { margin-bottom: 0.5rem; color: var(--primary-text); /* Make main text primary */}
.volunteering-list p:first-of-type { margin-bottom: 10px; } /* Space after title line */
.volunteering-list p.collectible { color: var(--secondary-text); padding: 8px 40px 8px 12px; position: relative; border-radius: 4px; transition: background-color 0.2s ease; min-height: 38px;}
.volunteering-list p.collectible:hover { background-color: var(--surface-light);}
.volunteering-list p .add-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 1em; color: var(--secondary-text); /* Ensure color */}
/* Hobbies Fixes */
.hobbies .hobby-icons { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; }
.hobbies .hobby-icons span { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.85rem; color: var(--secondary-text); width: calc(33.33% - 10px); padding: 10px 5px; border-radius: 4px; transition: background-color 0.2s ease, color 0.3s ease; position: relative; min-height: 95px; /* Ensure space */}
.hobbies .hobby-icons span.collectible:hover { background-color: var(--surface-light);}
.hobbies .hobby-icons i { font-size: 2rem; color: var(--accent-color); margin-bottom: 8px; transition: color 0.3s ease;}
.hobbies .hobby-icons span .add-icon { margin-left: 0; margin-top: 8px; /* More space */ display: block; position: static; opacity: 0.7; font-size: 0.9em; color: var(--secondary-text); /* Ensure color */}
.hobbies .hobby-icons span:hover .add-icon { opacity: 1; color: var(--primary-text); transform: scale(1.1);}

/* --- Contact Section --- */
#contact h2, .contact-intro { text-align: center; }
.contact-intro { max-width: 700px; margin: -1rem auto 2rem auto; }
.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; max-width: 900px; margin: 3rem auto; }
.contact-card { background-color: var(--surface-color); padding: 30px 25px; border-radius: 8px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.contact-card i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; transition: color 0.3s ease;}
.contact-card h4 { font-size: 1.3rem; color: var(--primary-text); margin-bottom: 10px; transition: color 0.3s ease;}
.contact-card p { font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.contact-card .btn { margin-top: auto; }
.contact-card .button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-top: auto;} /* Allow multiple buttons */
.contact-card .button-group .btn { flex-grow: 1; min-width: 120px; /* Ensure buttons don't get too small */}
.contact-details-minor { text-align: center; margin-top: 40px; color: var(--secondary-text); font-size: 0.9rem; transition: color 0.3s ease;}
.contact-details-minor span { margin: 0 15px; display: inline-block;}
.contact-details-minor i { margin-right: 5px; color: var(--accent-color); transition: color 0.3s ease;}
.contact-details-minor a { color: var(--secondary-text); transition: color 0.3s ease;}
.contact-details-minor a:hover { color: var(--accent-color); }

/* --- Footer --- */
footer { background-color: var(--surface-color); color: var(--secondary-text); text-align: center; padding: 30px 0; margin-top: 50px; transition: background-color 0.3s ease, color 0.3s ease;}
footer p { margin-bottom: 5px; font-size: 0.9rem; }
.footer-a11y-info { font-size: 0.8rem; opacity: 0.7;}
.footer-a11y-info i { color: var(--accent-color); }

/* --- Animations --- */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes quickFlash { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.05); } }
@keyframes modal-pop { 0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; } 70% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.animate-on-scroll { opacity: 0; transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.fade-in { transform: translateY(30px); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; } .delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }

/* --- Confetti Animation --- */
#confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1100; overflow: hidden; }
.confetti { position: absolute; width: 8px; height: 16px; background-color: var(--accent-color); opacity: 0; /* Start invisible */ animation: confetti-fall 3s ease-out forwards; will-change: transform, opacity; }
.confetti.shape-1 { background-color: var(--highlight-color); width: 10px; height: 10px; border-radius: 50%; }
.confetti.shape-2 { background-color: var(--white); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.confetti.shape-3 { background-color: var(--accent-color); transform: skew(15deg, 15deg); }
@keyframes confetti-fall {
    0% { transform: translateY(-10vh) rotateZ(0deg); opacity: 1; } /* Start visible */
    100% { transform: translateY(110vh) rotateZ(720deg); opacity: 0; } /* End invisible */
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    html { --base-font-size: 15.5px; }
    h1 { font-size: calc(1.4rem + 1.8vw); } h2 { font-size: calc(1rem + 1.2vw); } h3 { font-size: calc(1rem + 0.5vw); } h4 { font-size: calc(1rem + 0.1vw); }
    .container { padding: 0 30px; }
    #main-nav ul li { margin-left: 15px; } #main-nav ul li a { font-size: 0.9rem; }
    #profile-basket { width: 280px; }
    .hobbies .hobby-icons span { width: calc(50% - 8px); }
}
@media (max-width: 768px) {
    html { --base-font-size: 15px; }
    #main-nav { height: 60px; --header-height: 60px;}
    #accessibility-menu { top: calc(var(--header-height) + 10px); left: 10px; }
     #acc-toggle-btn { width: 36px; height: 36px;} #acc-toggle-btn i { font-size: 1rem; } #acc-options { top: 46px; }
    .nav-container { padding: 0 15px; }
    .nav-logo-link { display: none; } /* Hide logo link on mobile */
    #main-nav ul { display: none; } #basket-toggle { margin-left: auto; }
    #hero { min-height: auto; padding: 100px 0 50px 0; }
    .profile-photo { width: 140px; height: 140px; }
    h1 { font-size: calc(1.5rem + 2.5vw); } #hero h2 { font-size: calc(1rem + 1.5vw); } #hero h3 { font-size: calc(0.9rem + 0.5vw); }
    section { padding: 60px 0; }
    .accordion-item summary { flex-wrap: wrap; padding: 12px 15px;}
    .accordion-title { font-size: 0.95rem; margin-bottom: 5px; width: calc(100% - 40px); }
    .accordion-date { font-size: 0.8rem; width: 100%; text-align: left; margin-top: 5px; color: var(--secondary-text);}
    .accordion-icon { margin-left: auto; }
    .accordion-content ul li { padding: 6px 35px 6px 12px; } .accordion-content ul li.collectible .add-icon { right: 10px;}
    .skills-extra-grid { grid-template-columns: 1fr; }
    .hobbies .hobby-icons span { width: calc(50% - 10px); }
    .contact-options { grid-template-columns: 1fr; }
    .contact-details-minor { display: flex; flex-direction: column; gap: 10px;} .contact-details-minor span { margin: 0; }
     #profile-basket { width: 250px; }
     #summary-modal { width: 90%; padding: 20px; } .modal-content h3 { font-size: 1.5rem; } #summary-list li { font-size: 0.9rem; }
}
@media (max-width: 480px) {
    html { --base-font-size: 14px; }
    .container { padding: 0 15px; }
    .profile-photo { width: 110px; height: 110px; }
    h1 { font-size: calc(1.4rem + 3vw); } #hero h2 { font-size: calc(1rem + 2vw); } #hero h3 { font-size: calc(0.9rem + 1vw); }
    .btn { padding: 10px 15px; font-size: 0.9rem;}
    .expertise-grid { grid-template-columns: 1fr; } .education-grid { grid-template-columns: 1fr; }
    .hobbies .hobby-icons span { width: calc(50% - 8px); font-size: 0.8rem;}
    .hobbies .hobby-icons span i { font-size: 1.8rem;} .hobbies .hobby-icons span .add-icon { margin-top: 3px; font-size: 0.9em;} /* Adjusted hobby icon size */
    #profile-basket { width: 100%; padding: calc(var(--header-height) + 15px) 15px 15px 15px;}
    .basket-actions .btn { font-size: 0.8rem;}
    .modal-content { padding: 20px 15px; } .modal-content #copy-summary-btn { width: 90%; }
    #accessibility-menu { top: 10px; } #acc-options { max-width: calc(100vw - 30px); }
    .contact-card .button-group .btn { min-width: 100px; font-size: 0.85rem; } /* Smaller buttons on mobile */
}