/* ==================================================
   Core Design System & Theme Settings
   ================================================== */
:root {
    --bg-dark: #070913;
    --card-bg: rgba(13, 17, 35, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Neon Glow & Brands */
    --primary: #8b5cf6;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --glow-violet: rgba(139, 92, 246, 0.25);
    --glow-cyan: rgba(6, 182, 212, 0.25);
    
    /* Typography */
    --font-heading: 'Outfit', 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Space Canvas Backdrop */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Container Layout */
.container {
    width: 100%;
    max-width: 960px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
    z-index: 10;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 7, 13, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 0 -24px; /* Span full container width including padding */
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link-item {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.5px;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: #ffffff;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.logo-brand-group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 850;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    line-height: 1;
    color: #ffffff;
}

.logo-subtext {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #94a3b8;
}

.nav-contact-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 8px 18px;
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-contact-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.5s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ==================================================
   第一眼：Hero Section (吸睛)
   ================================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding-top: 30px;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.title-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.title-main {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}

/* Gradient shine animation */
.animate-gradient {
    background: linear-gradient(
        to right,
        #ffffff 20%,
        var(--accent) 40%,
        var(--primary) 60%,
        #ffffff 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 6s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero-desc {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 760px;
    margin: 0 auto;
}

/* Hero Image with glowing mockup frame */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.glowing-frame {
    width: 100%;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 10px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 0 1px 1px rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glowing-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, var(--primary) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.glowing-frame:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(6, 182, 212, 0.15);
}

.image-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* ==================================================
   第二眼：Core Competencies Section (30秒理解)
   ================================================== */
.capabilities-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.cap-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.15),
        inset 0 0 1px 1px rgba(255,255,255,0.03);
}

.cap-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.cap-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.cap-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

.cap-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.25),
        0 0 25px rgba(99, 102, 241, 0.08);
    background: rgba(20, 25, 48, 0.7);
}

/* ==================================================
   第三眼：Contact & Webmail Form (3分鐘促成聯繫)
   ================================================== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.webmail-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.4),
        inset 0 0 1px 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.webmail-card:hover {
    border-color: rgba(255,255,255,0.12);
}

/* macOS-like Window Header */
.webmail-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

.window-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 20px;
}

.window-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #fbbf24; }
.dot-green { background-color: #10b981; }

.window-title {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Form Styles */
.webmail-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 12px;
}

.form-row label {
    width: 80px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-row input[type="text"],
.form-row input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.form-row input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.form-row input[readonly] {
    color: var(--accent);
    font-weight: 500;
}

/* Body / Textarea row */
.body-row {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    gap: 8px;
}

.body-row label {
    display: none;
}

.body-row textarea {
    width: 100%;
    height: 160px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
    resize: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.body-row textarea:focus {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.body-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

/* Attachment Area */
.attachment-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.03);
}

.drop-icon {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.drop-zone:hover .drop-icon {
    color: var(--accent);
    transform: rotate(15deg);
}

.drop-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.file-name {
    color: var(--accent);
    font-weight: 500;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.remove-file-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
}

/* Feedbacks */
.form-feedback {
    font-size: 0.85rem;
    text-align: center;
    min-height: 18px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.form-feedback.success { color: #10b981; opacity: 1; }
.form-feedback.error { color: #ef4444; opacity: 1; }
.form-feedback.loading { color: var(--accent); opacity: 1; }

/* Webmail Footer */
.webmail-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 16px;
}

.send-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border: none;
    outline: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    filter: brightness(1.1);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Fallback Mailto */
.contact-fallback {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.email-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* Spinner Animation */
.spinner {
    animation: rotate 1s linear infinite;
    display: inline-block;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* ==================================================
   Footer & RWD adjustments
   ================================================== */
.footer-copyright {
    margin-top: 40px;
    padding: 30px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
}

@media (max-width: 600px) {
    .container {
        gap: 60px;
    }
    .webmail-card {
        border-radius: 16px;
    }
    .webmail-body {
        padding: 16px;
    }
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .form-row label {
        width: 100%;
    }
    .form-row input[type="text"],
    .form-row input[type="email"] {
        width: 100%;
    }
    .body-row textarea {
        height: 140px;
    }
    .send-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================================================
   Formosa History Card Styles
   ================================================== */
.formosa-history-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 24px;
    margin: 24px auto 0 auto;
    max-width: 980px;
    width: 100%;
    text-align: left;
    display: flex;
    gap: 32px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 1px 1px rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.formosa-history-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.history-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.history-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 24px;
        margin: 0 -24px;
        align-items: center;
    }
    .nav-links {
        width: 100%;
        order: 3;
        justify-content: center;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
        margin-top: 4px;
    }
    .nav-link-item {
        font-size: 0.85rem;
    }
    .logo-subtext {
        display: none !important;
    }
    .desktop-only {
        display: none !important;
    }
    .formosa-history-card {
        flex-direction: column;
        gap: 24px;
    }
    .history-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    }
}

.history-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.history-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent);
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.history-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.history-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* ==================================================
   Image Zoom Overlay & Lightbox Styles
   ================================================== */
.frame-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 13, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 12px;
    pointer-events: none;
}

.glowing-frame:hover .frame-overlay {
    opacity: 1;
}

.zoom-hint {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.9);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: translateY(10px);
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

.glowing-frame:hover .zoom-hint {
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 10, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3.2rem;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-smooth);
    user-select: none;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-download-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    transition: var(--transition-smooth);
}

.lightbox-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.55);
    filter: brightness(1.1);
}

/* ==================================================
   Webmail Attachment Actions Toolbar Styles
   ================================================= */
.webmail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.attachment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    font-weight: 500;
    font-family: var(--font-heading);
}

.attach-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.attached-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    animation: fadeIn 0.3s ease;
}

.attached-badge.hidden {
    display: none !important;
}

.badge-file-icon {
    font-size: 0.9rem;
}

.badge-file-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-file-remove {
    cursor: pointer;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 4px;
    transition: var(--transition-smooth);
}

.badge-file-remove:hover {
    color: #ef4444;
    transform: scale(1.1);
}

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

@media (max-width: 600px) {
    .webmail-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 16px;
    }
    .attachment-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .attach-btn {
        justify-content: center;
    }
    .attached-badge {
        justify-content: center;
    }
}

#contact-form {
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form.drag-active {
    border-color: rgba(6, 182, 212, 0.4) !important;
    background-color: rgba(6, 182, 212, 0.02) !important;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15) !important;
}

/* ==================================================
   Interactive Brand SVG Illustration Styles
   ================================================= */
.brand-illustration {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    user-select: none;
}

.svg-connection-line {
    transition: stroke 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    stroke-width: 1;
}

.svg-node {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.svg-node:hover {
    transform: scale(1.05);
}

