/* ==================== */
/* CSS Reset & Base     */
/* ==================== */

/* ======================== */
/* Scroll Progress Bar      */
/* ======================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
    z-index: 200;
    transition: width 0.1s linear;
}

/* ==================== */
/* CSS Reset & Base     */
/* ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== */
/* CSS Variables        */
/* ==================== */

:root {
    /* Colors - Light Theme */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Status Colors */
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --error-color: #ef4444;
    --error-bg: #fee2e2;

    /* Spacing */
    --section-padding: 5rem;
    --container-width: 1100px;
    --border-radius: 8px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --success-bg: #065f46;
    --error-bg: #7f1d1d;
}

/* ==================== */
/* Typography           */
/* ==================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-muted);
}

/* ==================== */
/* Layout               */
/* ==================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding) 0;
}

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* ==================== */
/* Scroll Animations    */
/* ==================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* Header & Navigation  */
/* ==================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease;
}

header .header-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Site logo link */
.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu ul {
    display: flex;
    gap: 2rem;
}

.menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

/* ==================== */
/* About Section        */
/* ==================== */

#about {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

#about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.about-content h2 {
    margin-bottom: 0.5rem;
}

.about-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    min-height: 1.6rem;
}

.about-content p {
    font-size: 1rem;
    max-width: 600px;
}

/* ==================== */
/* Skills Section       */
/* ==================== */

#skills h2 {
    text-align: center;
}

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

.skill-category {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* ==================== */
/* Filter Buttons       */
/* ==================== */

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: none;
}

.empty-state.visible {
    display: block;
}

/* ==================== */
/* Projects Section     */
/* ==================== */

#projects h2 {
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Filter Animation */
.project-card.hidden {
    display: none;
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.project-image {
    width: 100%;
    height: 180px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 0.75rem;
}

/* ==================== */
/* Certifications       */
/* ==================== */

#certifications h2 {
    text-align: center;
}

.cert-list {
    max-width: 700px;
    margin: 0 auto;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cert-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.cert-icon {
    font-size: 1.5rem;
}

.cert-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cert-details p {
    font-size: 0.85rem;
}

/* ==================== */
/* Contact Section      */
/* ==================== */

#contact {
    background-color: var(--bg-secondary);
}

#contact h2 {
    text-align: center;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

input,
textarea {
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Input Validation States */
input.error,
textarea.error {
    border-color: var(--error-color);
}

input.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.success,
textarea.success {
    border-color: var(--success-color);
}

.error-message {
    font-size: 0.85rem;
    color: var(--error-color);
    min-height: 1.25rem;
    transition: opacity 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ==================== */
/* Toast Notifications  */
/* ==================== */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background-color: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.toast.error {
    background-color: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Dark mode toast adjustments */
[data-theme="dark"] .toast.success {
    color: #6ee7b7;
}

[data-theme="dark"] .toast.error {
    color: #fca5a5;
}

/* ==================== */
/* Footer               */
/* ==================== */

footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

/* ==================== */
/* Responsive Design    */
/* ==================== */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Mobile nav - stack */
    header .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* About - stack */
    #about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content p {
        max-width: 100%;
    }

    /* Projects grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Filter buttons */
    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .menu ul {
        gap: 0.75rem;
    }

    .menu a {
        font-size: 0.85rem;
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }

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

    .toast {
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(100px);
    }

    .toast.visible {
        transform: translateX(0) translateY(0);
    }
}

/* ==================== */
/* Utilities            */
/* ==================== */

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

.text-primary {
    color: var(--primary-color);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden { display: none !important; }

/* ======================== */
/* Visitor Name Banner      */
/* ======================== */

.visitor-banner {
    display: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.visitor-banner.visible {
    display: flex;
}

.visitor-banner p {
    color: white;
    margin: 0;
}

.banner-change {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.banner-change:hover {
    color: white;
}

/* ======================== */
/* Visitor Name Prompt      */
/* ======================== */

.name-prompt {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 420px;
}

.name-prompt-label {
    font-weight: 500;
    color: var(--text-color) !important;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.name-prompt-form {
    display: flex;
    gap: 0.5rem;
}

.name-prompt-form input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.name-prompt-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.name-prompt-form input.error {
    border-color: var(--error-color);
}

.name-prompt-form button {
    padding: 0.6rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.name-prompt-form button:hover {
    background-color: var(--primary-hover);
}

/* ======================== */
/* Projects Controls        */
/* ======================== */

.projects-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Override filter-buttons margin since controls wrapper now handles spacing */
.projects-controls .filter-buttons {
    margin-bottom: 0;
}

.sort-select {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    appearance: none;
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sort-select:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ======================== */
/* API Fallback Notice      */
/* ======================== */

.api-fallback-notice {
    display: none;
    text-align: center;
    font-size: 0.85rem;
    color: #92400e;
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius);
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
}

.api-fallback-notice.visible {
    display: block;
}

[data-theme="dark"] .api-fallback-notice {
    color: #fcd34d;
    background-color: #451a03;
    border-color: #92400e;
}

/* ======================== */
/* Skeleton Loading Cards   */
/* ======================== */

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.skeleton {
    pointer-events: none;
}

.skeleton-line {
    height: 0.9rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        var(--bg-secondary) 50%,
        var(--border-color) 75%
    );
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-title {
    height: 1.1rem;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-short {
    width: 40%;
}

/* ======================== */
/* Responsive — new items   */
/* ======================== */

@media (max-width: 768px) {
    .projects-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-controls .filter-buttons {
        justify-content: center;
    }

    .sort-select {
        width: 100%;
        border-radius: var(--border-radius);
    }

    .name-prompt {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .name-prompt-form {
        flex-direction: column;
    }
}

/* ======================== */
/* Hamburger Button         */
/* ======================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate hamburger to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======================== */
/* Mobile Menu              */
/* ======================== */

.mobile-menu {
    display: none;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active-link {
    color: var(--primary-color);
}

.mobile-menu ul li:last-child a {
    border-bottom: none;
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ======================== */
/* Active Nav Link          */
/* ======================== */

.menu a.active-link {
    color: var(--primary-color);
}

.menu a.active-link::after {
    width: 100%;
}

/* ======================== */
/* About text layout        */
/* ======================== */

.about-text {
    max-width: 700px;
}

/* ======================== */
/* Typing Animation         */
/* ======================== */

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 0.75s step-end infinite;
    font-weight: 300;
}

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

/* ======================== */
/* Back To Top Button       */
/* ======================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
}

/* ======================== */
/* Copy Email Button        */
/* ======================== */

.copy-email-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.copy-email-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.copy-email-btn.copied {
    background-color: var(--success-bg);
    border-color: var(--success-color);
    color: var(--success-color);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}